Part Number Hot Search : 
LY3501 10300 IW3527A ZMD88W 04447 SRF860 PZU12B TLE4205
Product Description
Full Text Search
 

To Download M3826 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  description the 3826 group is the 8-bit microcomputer based on the 740 fam- ily core technology. the 3826 group has the lcd drive control circuit, an 8-channel a/ d converter, d/a converter, serial interface and pwm as additional functions. the various microcomputers in the 3826 group (one time prom version) include variations of internal memory size and packaging. this datasheet describes only the one time prom version (rom 60 k version) of 3826 group. features basic machine-language instructions ....................................... 71 the minimum instruction execution time ............................ 0.5 s (at 8mhz oscillation frequency) memory size rom ............................................................................. 60 k bytes ram ............................................................................ 2560 bytes programmable input/output ports ............................................. 55 software pull-up resistors .................................................... built-in output ports ................................................................................. 8 input ports .................................................................................... 1 interrupts .................................................. 17 sources, 16 vectors external ................ 7 sources (includes key input interrupt) internal ................................................................ 9 sources software ................................................................ 1 source t imers ............................................................ 8-bit ? 3, 16-bit ? 2 serial interface serial i/o1 ...................... 8-bit ? 1 (uart or clock-synchronous) serial i/o2 .................................... 8-bit ? 1 (clock-synchronous) pwm output .................................................................... 8-bit ? 1 a/d converter ............. 10-bit ? 8 channels or 8-bit ? 8 channels d/a converter .................................................. 8-bit ? 2 channels (used as dtmf and ctcss function) lcd drive control circuit bias ......................................................................... 1/2, 1/3 duty .................................................................. 1/2, 1/3, 1/4 common output ................................................................ 4 segment output .............................................................. 40 2 clock generating circuits (connect to external ceramic resonator or quartz-crystal oscillator) w atchdog timer ............................................................. 14-bit ? 1 power source voltage in high-speed mode (f(x in ) = 8 mhz) ..................... 4.0 v to 5.5 v in middle-speed mode (f(x in ) = 8 mhz) ................. 2.5 v to 5.5 v in low-speed mode .................................................. 2.5 v to 5.5 v power dissipation in high-speed mode ................................................... t yp. 32 mw (f(x in ) = 8 mhz, v cc = 5 v, ta = 25 ?) in low-speed mode ...................................................... t yp. 45 w (f(x in ) = stop, f(x cin ) = 32 khz, v cc = 3 v, ta = 25 ?) operating temperature range ................................... 20 to 85? applications camera, cordless phone, wireless application, household appli- ances, etc. 3826 group (one time prom version) single-chip 8-bit cmos microcomputer rej03b0181-0100 rev.1.00 sep 06, 2006 rev.1.00 sep 06, 2006 page 1 of 88 rej03b0181-0100
rev.1.00 sep 06, 2006 page 2 of 88 rej03b0181-0100 3826 group (one time prom version) package type : plqp0100kb-a (100p6q-a) pin configuration (top view) fig. 2 pin configuration (package type: plqp0100kb-a) 1234567891011121314151 6171819202122232425 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00 1 M3826aefgp seg 12 seg 11 seg 10 seg 9 seg 8 seg 7 seg 6 seg 5 seg 4 seg 3 seg 2 seg 1 seg 0 v cc v ref av ss com 3 com 2 com 1 com 0 v l3 v l2 c 2 c 1 v l1 p6 7 /an 7 p6 6 /an 6 p6 5 /an 5 p6 4 /an 4 p5 7 /adt/da 2 p5 6 /da 1 p5 5 /cntr 1 p5 4 /cntr 0 p4 1 /int 1 p4 0 p4 3 / /t out p5 3 /rtp 1 p5 2 /rtp 0 p5 1 /pwm 1 p5 0 /pwm 0 p7 7 p4 2 /int 2 p7 2 p7 3 p7 1 p7 0 /int 0 x cin x cout x in x ou t v ss p2 7 p2 6 p2 5 p2 4 p2 3 p2 1 p1 6 p2 2 p2 0 p1 7 reset p7 6 p7 5 p7 4 p1 5 /seg 39 p1 4 /seg 38 p3 1 /seg 19 p3 0 /seg 18 p3 2 /seg 20 p3 3 /seg 21 p3 4 /seg 22 seg 13 seg 14 seg 15 p3 5 /seg 23 p3 6 /seg 24 p3 7 /seg 25 p0 0 /seg 26 p0 1 /seg 27 p0 2 /seg 28 p0 3 /seg 29 p0 4 /seg 30 p0 5 /seg 31 p0 6 /seg 32 p0 7 /seg 33 p1 0 /seg 34 p1 1 /seg 35 p1 2 /seg 36 p1 3 /seg 37 seg 16 seg 17 p6 2 /s clk21 /an 2 p6 1 /s out2 /an 1 p6 0 /s in2 /an 0 p6 3 /s clk22 /an 3 p4 6 /s clk1 p4 5 /t x d p4 4 /r x d p4 7 /s rdy1 package type : prqp0100jb-a (100p6s-a) fig. 1 pin configuration (package type: prqp0100jb-a) 12345 678910111 2131415161718192021222324252627282930 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 1 00 M3826aeffp seg 9 p3 1 /seg 19 p3 0 /seg 18 p3 2 /seg 20 p3 3 /seg 21 p3 4 /seg 22 seg 10 seg 11 seg 12 seg 13 seg 14 seg 15 p3 5 /seg 23 p3 6 /seg 24 p3 7 /seg 25 p0 0 /seg 26 p0 1 /seg 27 p0 2 /seg 28 p0 3 /seg 29 p0 4 /seg 30 p0 5 /seg 31 p0 6 /seg 32 p0 7 /seg 33 p1 0 /seg 34 p1 1 /seg 35 p1 2 /seg 36 p1 3 /seg 37 p1 4 /seg 38 p1 5 /seg 39 c 1 v l1 p6 7 /an 7 p6 6 /an 6 p6 5 /an 5 p6 4 /an 4 p6 2 /s clk21 /an 2 p6 1 /s out2 /an 1 p6 0 /s in2 /an 0 p5 7 /adt/da 2 p5 6 /da 1 p5 5 /cntr 1 p5 4 /cntr 0 p5 3 /rtp 1 p5 2 /rtp 0 p5 1 /pwm 1 p5 0 /pwm 0 p4 6 /s clk1 p4 5 /t x d p4 4 /r x d p4 3 / /t out p4 2 /int 2 p4 1 /int 1 p4 0 p7 7 p7 6 p7 5 p7 4 c 2 v l2 v l3 com 0 com 1 com 2 v ref av ss v cc seg 8 seg 0 seg 1 seg 2 seg 4 seg 5 seg 6 seg 7 seg 3 p7 2 p7 3 p7 1 p7 0 /int 0 x cin x cout x in x out v ss p2 7 p2 6 p2 5 p2 4 p2 3 p2 1 p1 6 p2 2 p2 0 p1 7 reset seg 16 seg 17 com 3 p4 7 /s rdy1 p6 3 /s clk22 /an 3
rev.1.00 sep 06, 2006 page 3 of 88 rej03b0181-0100 3826 group (one time prom version) functional block diagram (package type: prqp0100jb-a) fig. 3 functional block diagram int 1, int 2 cntr 0 ,cntr 1 da 1 adt c p u a x y s pc h pc l ps reset v cc v ss ( 5 v ) ( 0 v ) r o m r a m 35 91 40 p4(8) p2(8) p0(8) p1(8) p6(8) p7(8) p3(8) p5(8) 1 2 100 99 98 97 96 95 94 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 57 58 59 60 61 62 63 64 49 50 51 52 53 54 55 56 41 42 43 44 45 46 47 48 65 66 67 68 69 70 71 72 19 20 21 22 23 24 25 26 36 37 27 28 29 30 31 32 33 34 345 678 910 93 92 11 12 13 14 15 16 17 18 x cin x cout x in out x cout x x cin si/o1 (8) v ref av ss v l1 c 1 c 2 v l2 v l3 com 0 com 1 com 2 com 3 seg 0 seg 1 seg 2 seg 3 seg 4 seg 5 seg 6 seg 7 seg 8 seg 9 seg 10 seg 11 seg 12 seg 13 seg 14 seg 15 seg 16 seg 17 x cin cout x 38 39 si/o2(8) pwm(8) int 0 da2/ctcss da1/dtmf da 2 t out lcd drive control circuit lcd display ram (20 bytes) timer x (16) timer y (16) timer 1 (8) timer 2 (8) timer 3 (8) data bus clock generating circuit main clock input main clock output sub-clock output sub-clock input reset key input (key-on wake up) interrupt real time port function a/d converter (8) i/o port p0 i/o port p1 i/o port p2 i/o port p4 i/o port p5 i/o port p6 output port p3 i/o port p7 reset input sub- clock output sub- clock input watchdog timer
rev.1.00 sep 06, 2006 page 4 of 88 rej03b0181-0100 3826 group (one time prom version) pin description t able 1 pin description (1) v cc v ss function pin name function except a port function lcd segment output pins power source apply voltage of power source to v cc , and 0 v to v ss . (for the limits of v cc , refer to ?ecom- mended operating conditions? v ref av ss reset x in x out v l1 ? l3 c 1 , c 2 com 0 ?om 3 seg 0 ?eg 17 p0 0 /seg 26 p0 7 /seg 33 p1 0 /seg 34 p1 5 /seg 39 p1 6 , p1 7 p2 0 ?p2 7 p3 0 /seg 18 p3 7 /seg 25 analog refer- ence voltage analog power source reset input clock input clock output lcd power source charge-pump capacitor pin common output segment output i/o port p0 i/o port p1 i/o port p2 output port p3 reference voltage input pin for a/d converter and d/a converter. gnd input pin for a/d converter and d/a converter. connect to v ss . reset input pin for active ?? input and output pins for the main clock generating circuit. connect a ceramic resonator or a quartz-crystal oscillator between the x in and x out pins to set the oscillation frequency. if an external clock is used, connect the clock source to the x in pin and leave the x out pin open. a feedback resistor is built-in. input 0 v l1 v l2 v l3 voltage. input 0 ?v l3 voltage to lcd. (0 v l1 v l2 v l3 when a voltage is multiplied.) external capacitor pins for a voltage multiplier (3 times) of lcd control. lcd common output pins. com 2 and com 3 are not used at 1/2 duty ratio. com 3 is not used at 1/3 duty ratio. lcd segment output pins. 8-bit i/o port. cmos compatible input level. cmos 3-state output structure. pull-up control is enabled. i/o direction register allows each 8-bit pin to be pro- grammed as either input or output. 6-bit i/o port. cmos compatible input level. cmos 3-state output structure. pull-up control is enabled. i/o direction register allows each 6-bit pin to be pro- grammed as either input or output. 2-bit i/o port. cmos compatible input level. cmos 3-state output structure. i/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 8-bit i/o port. cmos compatible input level. cmos 3-state output structure. i/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 8-bit output. cmos 3-state output structure. port output control is enabled. ?ey input (key-on wake-up) interrupt input pins ?cd segment output pins
rev.1.00 sep 06, 2006 page 5 of 88 rej03b0181-0100 3826 group (one time prom version) t able 2 pin description (2) function pin name function except a port function p4 0 p4 1 /int 1 , p4 2 /int 2 p4 3 / /t out p4 4 /r x d, p4 5 /t x d, p4 6 /s clk1 , p4 7 /s rdy1 p5 0 /pwm 0 , p5 1 /pwm 1 p5 2 /rtp 0 , p5 3 /rtp 1 p5 4 /cntr 0 , p5 5 /cntr 1 p5 6 /da 1 p5 7 /adt/da 2 p6 0 /s in2 /an 0, p6 1 /s out2 /an 1, p6 2 /s clk21 /an 2, p6 3 /s clk22 /an 3 p6 4 /an 4 p6 7 /an 7 p7 0 /int 0 p7 1 ?7 7 i/o port p4 i/o port p5 i/o port p6 input port p7 i/o port p7 sub-clock output sub-clock input 1-bit i/o port. cmos compatible input level. n-channel open-drain output structure. ?/o direction register allows this pin to be individually programmed as either input or output. 7-bit i/o port. cmos compatible input level. cmos 3-state output structure. ?/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 8-bit i/o port. cmos compatible input level. cmos 3-state output structure. ?/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. ?-bit i/o port. cmos compatible input level. cmos 3-state output structure. ?/o direction register allows each pin to be individually programmed as either input or output. pull-up control is enabled. 1-bit input port. ?nt i interrupt input pins ?ystem clock output pin ?imer 2 output pin ?erial i/o1 i/o pins ?wm output pins ?eal time port output pins ?imer x, y i/o pins ?/a converter output pin ?/a converter output pin ?/d external trigger input pin ?/d converter input pins ?erial i/o2 i/o pins ?/d converter input pins x cout x cin ?nt 0 interrupt input pin 7-bit i/o port. cmos compatible input level. ? -channel open-drain output structure. ?/o direction register allows each pin to be individually programmed as either input or output. sub-clock generating circuit i/o pins. (connect an oscillator. external clock cannot be used.)
rev.1.00 sep 06, 2006 page 6 of 88 rej03b0181-0100 3826 group (one time prom version) p art numbering fig. 4 part numbering M3826 a e f fp product rom size 1 2 3 4 5 6 7 8 9 a b c d e f : 4096 bytes : 8192 bytes : 12288 bytes : 16384 bytes : 20480 bytes : 24576 bytes : 28672 bytes : 32768 bytes : 36864 bytes : 40960 bytes : 45056 bytes : 49152 bytes : 53248 bytes : 57344 bytes : 61440 bytes the first 128 bytes and the last 2 bytes of rom are reserved areas ; they cannot be used. memory type e: eprom version or one time prom version package type fp gp fs : prqp0100jb-a : plqp0100kb-a : 100d0 : 192 bytes : 256 bytes : 384 bytes : 512 bytes : 640 bytes : 768 bytes : 896 bytes : 1024 bytes : 1536 bytes : 2048 bytes : 2560 bytes ram size 0 1 2 3 4 5 6 7 8 9 a
rev.1.00 sep 06, 2006 page 7 of 88 rej03b0181-0100 3826 group (one time prom version) group expansion renesas expands the 3826 group as follows. memory type support for one time prom version or eprom version. memory size rom size ........................................................................ 60 k bytes ram size ....................................................................... 2560 bytes packages prqp0100jb-a ....................... 0.65 mm-pitch plastic molded qfp plqp0100kb-a ......................... 0.5 mm-pitch plastic molded qfp 100d0 ................... 0.65 mm-pitch ceramic lcc (eprom version) memory expansion plan fig. 5 memory expansion plan rom size (bytes) ram size (b y tes) 256 512 768 1024 1280 1536 1792 192 2048 2304 2560 32k 28k 24k 20k 16k 12k 8k 4k 52k 48k 44k 40k 36k 56k 60k M3826aef mass production currently planning products are listed below. t able 3 support products as of sep. 2006 remarks one time rpom version one time prom version eprom version for development package prqp0100jb-a plqp0100kb-a 100d0 part number M3826aeffp M3826aefgp M3826aeffs ram size (bytes) 61440 (61310) rom size (bytes) rom size for user in ( ) 2560
rev.1.00 sep 06, 2006 page 8 of 88 rej03b0181-0100 3826 group (one time prom version) functional description central processing unit (cpu) the 3826 group uses the standard 740 family instruction set. re- fer to the table of 740 family addressing modes and machine instructions or the 740 family software manual for details on the instruction set. machine-resident 740 family instructions are as follows: the fst and slw instruction cannot be used. the stp, wit, mul, and div instruction can be used. the central processing unit (cpu) has six registers. figure 6 shows the 740 family cpu register structure. [accumulator (a)] the accumulator is an 8-bit register. data operations such as arithmetic data transfer, etc., are executed mainly through the ac- cumulator. [index register x (x)] the index register x is an 8-bit register. in the index addressing modes, the value of the operand is added to the contents of register x and specifies the real address. [index register y (y)] the index register y is an 8-bit register. in partial instruction, the value of the operand is added to the contents of register y and specifies the real address. [stack pointer (s)] the stack pointer is an 8-bit register used during subroutine calls and interrupts. this register indicates start address of stored area (stack) for storing registers during subroutine calls and interrupts. the low-order 8 bits of the stack address are determined by the contents of the stack pointer. the high-order 8 bits of the stack address are determined by the stack page selection bit. if the stack page selection bit is ??, the high-order 8 bits becomes ?0 16 ? if the stack page selection bit is ?? the high-order 8 bits becomes ?1 16 ? figure 7 shows the operations of pushing register contents onto the stack and popping them from the stack. table 4 shows the push and pop instructions of accumulator or processor status reg- ister. store registers other than those described in figure 7 with pro- gram when the user needs them during interrupts or subroutine calls. [program counter (pc)] the program counter is a 16-bit counter consisting of two 8-bit registers pc h and pc l . it is used to indicate the address of the next instruction to be executed. fig. 6 740 family cpu register structure aa ccumulator b7 b7 b7 b7 b0 b7 b15 b0 b7 b0 b0 b0 b0 x index register x y index register y ss tack pointer pc l program counter pc h n vtb di zc processor status register (ps) carry flag zero flag interrupt disable flag decimal mode flag break flag index x mode flag overflow flag negative flag
rev.1.00 sep 06, 2006 page 9 of 88 rej03b0181-0100 3826 group (one time prom version) t able 4 push and pop instructions of accumulator or processor status register accumulator processor status register push instruction to stack pha php pop instruction from stack pla plp fig. 7 register push and pop at interrupt generation and subroutine call n o t e : c o n d i t i o n f o r a c c e p t a n c e o f a n i n t e r r u p t r e q u e s t h e r e e x e c u t e j s r on-going routin e m ( s )( p c h ) ( s ) ( s ) 1 m ( s )( p c l ) e x e c u t e r t s (pc l )m (s) ( s ) ( s ) 1 ( s ) ( s ) + 1 (s) (s) + 1 ( p c h )m ( s ) s u b r o u t i n e p o p re t u r n a d d r e s s f r o m s t a c k p u s h r e t u r n a d d r e s s o n s t a c k m (s )( ps) exec ute rti ( p s )m ( s ) (s) (s) 1 (s) (s) + 1 i n t e r r u p t s e r v i c e r o u t i n e pop c ontents of processor status register from stack m ( s )( p c h ) (s) (s) 1 m ( s )( p c l ) (s) (s) 1 (pc l )m (s) (s) (s) + 1 (s) (s) + 1 (pc h )m (s) pop re turn address from stack i f l a g i s s e t f r o m 0 t o 1 f e t c h t h e j u m p v e c t o r p u s h r e t u r n a d d r e s s o n s t a c k push cont ents of processor status register on stack interr upt request (note) interrupt enable bit corresponding to each interrupt source is ? interrupt disable flag is ?
rev.1.00 sep 06, 2006 page 10 of 88 rej03b0181-0100 3826 group (one time prom version) [processor status register (ps)] the processor status register is an 8-bit register consisting of 5 flags which indicate the status of the processor after an arithmetic operation and 3 flags which decide mcu operation. branch opera- tions can be performed by testing the carry (c) flag , zero (z) flag, overflow (v) flag, or the negative (n) flag. in decimal mode, the z, v, n flags are not valid. ?bit 0: carry flag (c) the c flag contains a carry or borrow generated by the arith- metic logic unit (alu) immediately after an arithmetic operation. it can also be changed by a shift or rotate instruction. ?bit 1: zero flag (z) the z flag is set to ??if the result of an immediate arithmetic op- eration or a data transfer is ?? and set to ??if the result is anything other than ?? ?bit 2: interrupt disable flag (i) the i flag disables all interrupts except for the interrupt gener- ated by the brk instruction. interrupts are disabled when the i flag is ?? ?bit 3: decimal mode flag (d) the d flag determines whether additions and subtractions are executed in binary or decimal. binary arithmetic is executed when this flag is ?? decimal arithmetic is executed when it is ?? decimal correction is automatic in decimal mode. only the adc and sbc instructions can be used for decimal arithmetic. ?bit 4: break flag (b) the b flag is used to indicate that the current interrupt was gen- erated by the brk instruction. when the brk instruction is generated, the b flag is set to ??automatically. when the other interrupts are generated, the b flag is set to ?? and the proces- sor status register is pushed onto the stack. ?bit 5: index x mode flag (t) when the t flag is ?? arithmetic operations are performed be- tween accumulator and memory. when the t flag is ?? direct arithmetic operations and direct data transfers are enabled be- tween memory locations. ?bit 6: overflow flag (v) the v flag is used during the addition or subtraction of one byte of signed data. it is set to ??if the result exceeds +127 to -128. when the bit instruction is executed, bit 6 of the memory loca- tion operated on by the bit instruction is stored in the v flag. ?bit 7: negative flag (n) the n flag is set to ??if the result of an arithmetic operation or data transfer is negative. when the bit instruction is executed, bit 7 of the memory location operated on by the bit instruction is stored in the negative flag. t able 5 instructions to set each bit of processor status register to ??or ? instruction setting to ? instruction setting to ? c flag sec clc z flag i flag sei cli d flag sed cld b flag t flag set clt v flag clv n flag
rev.1.00 sep 06, 2006 page 11 of 88 rej03b0181-0100 3826 group (one time prom version) [cpu mode register (cpum)] 003b 16 the cpu mode register contains the stack page selection bit and the system clock control bits, etc. the cpu mode register is allocated at address 003b 16 . fig. 8 structure of cpu mode register p rocessor mo d e bi ts b1 b0 0 0 : single-chip mode 0 1 : 1 0 : 1 1 : stack page selection bit 0 : 0 page 1 : 1 page not used (?? at reading) (write 1 to this bit at writ ing) x c switch bit 0 : o scillation stop 1 : x cin ? cout oscillati ng function main cl o ck (x in x out ) st op bit 0 : o scillating 1 : stopped main clo ck division ratio selection bit 0 : f(x in )/2 (high-speed mode) 1 : f(x in )/8 (middle-speed mode) s ystem clock selection bit 0 : x in ? out selected (middle -/hi gh-speed mode) 1 : x cin ? cout selected (low -s peed mode) d o not se l ect cp u mode register ( c p u m ( c m ) : a d d r e s s 0 0 3 b 1 6 ) b 7 b 0 1
rev.1.00 sep 06, 2006 page 12 of 88 rej03b0181-0100 3826 group (one time prom version) memory special function register (sfr) area the special function register area in the zero page contains con- trol registers such as i/o ports and timers. ram ram is used for data storage and for stack area of subroutine calls and interrupts. rom the first 128 bytes and the last 2 bytes of rom are reserved for device testing and the rest is user area for storing programs. interrupt vector area the interrupt vector area contains reset and interrupt vectors. zero page the 256 bytes from addresses 0000 16 to 00ff 16 are called the zero page area. the internal ram and the special function regis- ters (sfr) are allocated to this area. the zero page addressing mode can be used to specify memory and register addresses in the zero page area. access to this area with only 2 bytes is possible in the zero page addressing mode. special page the 256 bytes from addresses ff00 16 to ffff 16 a re called the special page area. the special page addressing mode can be used to specify memory addresses in the special page area. ac- cess to this area with only 2 bytes is possible in the special page addressing mode. fig. 9 memory map diagram 1 9 2 2 5 6 3 8 4 5 1 2 6 4 0 7 6 8 8 9 6 1 0 2 4 1 5 3 6 2 0 4 8 2 5 6 0 00 ff 16 013f 16 01bf 16 023f 16 02bf 16 033f 16 03bf 16 043f 16 063f 16 083f 16 0a3f 16 r a m a r e a r a m s i z e ( b y t e s ) a d d r e s s x x x x 1 6 4 0 9 6 8 1 9 2 1 2 2 8 8 1 6 3 8 4 2 0 4 8 0 2 4 5 7 6 2 8 6 7 2 3 2 7 6 8 3 6 8 6 4 4 0 9 6 0 4 5 0 5 6 4 9 1 5 2 5 3 2 4 8 5 7 3 4 4 6 1 4 4 0 f 0 0 0 1 6 e 0 0 0 1 6 d 0 0 0 1 6 c 0 0 0 1 6 b 0 0 0 1 6 a 0 0 0 1 6 9 0 0 0 1 6 8 0 0 0 1 6 7 0 0 0 1 6 6 0 0 0 1 6 5 0 0 0 1 6 4 0 0 0 1 6 3 0 0 0 1 6 2 0 0 0 1 6 1 0 0 0 1 6 f 0 8 0 1 6 e 0 8 0 1 6 d 0 8 0 1 6 c 0 8 0 1 6 b 0 8 0 1 6 a 0 8 0 1 6 9 0 8 0 1 6 8 0 8 0 1 6 7 0 8 0 1 6 6 0 8 0 1 6 5 0 8 0 1 6 4 0 8 0 1 6 3 0 8 0 1 6 2 0 8 0 1 6 1 0 8 0 1 6 rom area rom s i ze (byt es) a d d r e s s y y y y 1 6 a d d r e s s z z z z 1 6 0100 16 0000 16 0040 16 ff 00 16 ffdc 16 f f f e 1 6 ffff 16 xxxx 16 yyyy 16 zzzz 16 ram r o m 0054 16 s f r a r e a n o t u s e d i n t e r r u p t v e c t o r a r e a r eserve d rom area (128 bytes) z e r o p a g e s p e c i a l p a g e lcd di sp l ay ram area r e s e r v e d r o m a r e a
rev.1.00 sep 06, 2006 page 13 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 10 memory map of special function register (sfr) 0020 16 0021 16 0022 16 0023 16 0024 16 0025 16 0026 16 0027 16 0028 16 0029 16 002a 16 002b 16 002c 16 002d 16 002e 16 002f 16 0030 16 0031 16 0032 16 0033 16 0034 16 0035 16 0036 16 0037 16 0038 16 0039 16 003a 16 003b 16 003c 16 003d 16 003e 16 003f 16 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 0010 16 0011 16 0012 16 0013 16 0014 16 0015 16 0016 16 0017 16 0018 16 0019 16 001a 16 001b 16 001c 16 001d 16 001e 16 001f 16 port p0 register (p0) port p1 register (p1) port p1 direction register (p1d) port p2 register (p2) port p2 direction register (p2d) port p3 register (p3) port p4 register (p4) port p4 direction register (p4d) port p5 register (p5) port p5 direction register (p5d) port p6 register (p6) port p6 direction register (p6d) port p7 register (p7) port p7 direction register (p7d) serial i/o1 status register (sio1sts) serial i/o1 control register (sio1con) uart control register (uartcon) baud rate generator (brg) interrupt control register 2(icon2) timer 3 register (t3) timer x mode register (txm) interrupt edge selection register (intedge) cpu mode register (cpum) interrupt request register 1(ireq1) interrupt request register 2(ireq2) interrupt control register 1(icon1) timer x low-order register (txl) timer y low-order register (tyl) timer 1 register (t1) timer 2 register (t2) timer x high-order register (txh) timer y high-order register (tyh) pull register a (pulla) pull register b (pullb) timer y mode register (tym) timer 123 mode register (t123m) t out / output control register (ckout) segment output enable register (seg) lcd mode register (lm) ad control register (adcon) ad conversion high-order register (adh) transmit/receive buffer register (tb/rb) key input control register (kic) port p0 direction register (p0d) port p3 output control register (p3c) reserved area (note) serial i/o2 control register (sio2con) serial i/o2 register (sio2) pwm control register (pwmcon) pwm prescaler (prepwm) pwm register (pwm) da1 conversion register (da1) da2 conversion register (da2) da control register (dacon) watchdog timer control register (wdtcon) note: do not write to the addresses of reserved area. ad conversion low-order register (adl) ctscss timer (low) (ctcssl) ctscss timer (high) (ctcssh) dtmf high group timer (dtmfh) dtmf low group timer (dtmfl)
rev.1.00 sep 06, 2006 page 14 of 88 rej03b0181-0100 3826 group (one time prom version) i/o ports direction registers the i/o ports (ports p0, p1, p2, p4, p5, p6, p7 1 ?7 7 ) have direc- tion registers. ports p1 6 , p1 7 , p4, p5, p6, and p7 1 ?7 7 can be set to input mode or output mode by each pin individually. p0 0 ?0 7 and p1 0 -p1 5 are respectively set to input mode or output mode in a lump by bit 0 of the direction registers of ports p0 and p1 (see figure 11). when ??is set to the bit corresponding to a pin, that pin becomes an input mode. when ??is set to that bit, that pin becomes an output mode. if data is read from a port set to output mode, the value of the port latch is read, not the value of the pin itself. a port set to input mode is floating. if data is read from a port set to input mode, the value of the pin itself is read. if a pin set to input mode is written to, only the port latch is written to and the pin remains floating. port p3 output control register bit 0 of the port p3 output control register (address 0007 16 ) en- ables control of the output of ports p3 0 ?3 7 . when the bit is set to ?? the port output function is valid. when resetting, bit 0 of the port p3 output control register is set to ??(the port output function is invalid) and pulled up. fig. 11 structure of port p0 direction register, port p1 direc- tion register fig. 12 structure of port p3 output control register p orts p 0 0 to p 0 7 di rect i on reg i ster 0 : input mode 1 : output mode not used (u ndefined at reading) (if writing to these bits, writ e 0 ?) p ort p 0 di rect i on reg i ster (p0d : address 0001 16 ) b 7 b 0 n ote: i n ports set to output mo d e, t h e pu ll -up co ntro l bi t b ecomes invalid and pull- up resi stor is not co nnected. p orts p 1 0 to p 1 5 di rect i on reg i ster 0 : input mode 1 : output mode not used (u ndefined at reading) (if writing to these bits, writ e 0 ?) port p1 6 direction register port p1 7 direction register 0 : input mode 1 : output mode p ort p 1 di rect i on reg i ster (p1d : address 0003 16 ) b 7 b 0 p orts p 3 0 to p 3 7 output contro l bi t 0 : output function is invalid (pulled up) 1 : output function is valid (no pull up) not used (u ndefined at reading) (if writing to these bits, writ e 0 ?) p ort p 3 output contro l reg i ster (p3c : address 0007 16 ) b 7 b 0 n ote: i n p i ns se t to segment output b y segment output ena bl e bi ts 0, 1 (bits 0, 1 of segment output enable register (address 38 16 )), this bit becomes invalid and pull-up resistor is not conn ected.
rev.1.00 sep 06, 2006 page 15 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 13 structure of pull register a and pull register b pull-up control by setting the pull register a (address 0016 16 ) or the pull reg- ister b (address 0017 16 ), ports p0 to p2, p4 to p6 can control pull-up with a program. however, the contents of pull register a and pull register b do not affect ports set to output mode and the ports are no pulled up. the pull register a setting is invalid for pins selecting segment output with the segment output enable register and the pins are not pulled up. p 0 0 , p 0 1 pu ll -up contro l bi t p0 2 , p0 3 pull-up control bit p0 4 ?0 7 pull-up control bit p1 0 ?1 3 pull-up control bit p1 4 , p1 5 pull-up control bit p1 6 , p1 7 pull-up control bit p2 0 ?2 3 pull-up control bit p2 4 ?2 7 pull-up control bit p u l l r e g i s t e r a ( p u l l a : a d d r e s s 0 0 1 6 1 6 ) b 7 b 0 p 4 1 p 4 3 pu ll -up co ntro l bi t p4 4 ?4 7 pull-up control bit p5 0 ?5 3 pull-up control bit p5 4 ?5 7 pull-up control bit p6 0 ?6 3 pull-up control bit p6 4 ?6 7 pull-up control bit not used ?? at reading) 0 : d i s a b l e 1 : e n a b l e p u l l r e g i s t e r b ( p u l l b : a d d r e s s 0 0 1 7 1 6 ) b 7 b 0 n ote: th e contents o f pull reg i ster a an d pull reg i ster b do no t affect ports set to output mode.
rev.1.00 sep 06, 2006 page 16 of 88 rej03b0181-0100 3826 group (one time prom version) pwm output da 2 output ctcss output a/d external trigger input da 1 output dtmf input diagram no. related sfrs input/output name pin non-port function i/o format t able 6 list of i/o port function (1) p0 0 /seg 26 p0 7 /seg 33 p1 0 /seg 34 p1 5 /seg 39 p1 6 , p1 7 p2 0 ?2 7 p3 0 /seg 18 p3 7 /seg 25 p4 0 p4 1 /int 1 , p4 2 /int 2 p4 3 / /t out p4 4 /r x d, p4 5 /t x d, p4 6 /s clk1 , p4 7 /s rdy1 p5 0 /pwm 0 , p5 1 /pwm 1 p5 2 /rtp 0 , p5 3 /rtp 1 p5 4 /cntr 0 p5 5 /cntr 1 p5 6 /da 1 p5 7 /adt/ da 2 port p0 port p1 port p2 port p3 port p4 port p5 input/output, byte unit input/output, 6-bit unit input/output, individual bits input/output, individual bits output input/output, individual bits input/output, individual bits cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output cmos 3-state output cmos compatible input level n-channel open-drain output cmos compatible input level cmos 3-state output cmos compatible input level cmos 3-state output lcd segment output lcd segment output key input (key-on wake-up) interrupt input lcd segment output int i interrupt input t imer 2 output system clock output serial i/o1 i/o real time port output t imer x i/o t imer y input pull register a segment output enable register pull register a segment output enable register pull register a pull register a interrupt control register 2 key input control register segment output enable register interrupt edge selection register pull register b ti mer 123 mode register t out / output control register pull register b serial i/o1 control register serial i/o1 status register uart control register pull register b pwm control register pull register b t imer x mode register pull register b t imer x mode register pull register b t imer y mode register pull register b da control register pull register b da control register ad control register (1) (2) (1) (2) (4) (3) (13) (4) (12) (5) (6) (7) (8) (10) (9) (11) (14) (15) (15) port p3 output control register
rev.1.00 sep 06, 2006 page 17 of 88 rej03b0181-0100 3826 group (one time prom version) pin name i/o format non-port function related sfr s diagram no. input/output notes 1: how to use double-function ports as function i/o pins, refer to the applicable sections. 2: make sure that the input level at each pin is either 0 v or v cc before execution of the stp instruction. when an electric potential is at an intermediate potential, a current will flow from v cc to v ss through the input-stage gate and power source current may increase. t able 7 list of i/o port function (2) p6 0 /s in2 /an 0 p6 1 /s out2 / an 1 p6 2 /s clk21 / an 2 p6 3 /s clk22 / an 3 p6 4 /an 4 p6 7 /an 7 p7 0 /int 0 p7 1 ?7 7 com 0 ?om 3 seg 0 ?eg 17 port p6 port p7 common segment input/ output, individual bits input input/ output, individual bits output output cmos compatible input level cmos 3-state output cmos compatible input level cmos compatible input level n-channel open-drain output lcd common output lcd segment output a/d converter input serial i/o2 i/o a/d converter input int 0 interrupt input pull register b ad control register serial i/o2 control register ad control register pull register b interrupt edge selection register (17) (18) (19) (20) (16) (23) (13) (21) (22) lcd mode register
rev.1.00 sep 06, 2006 page 18 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 14 port block diagram (1) (5) port p4 4 (4) ports p1 6 , p1 7 , p2, p4 1 , p4 2 pull-up control v l1 /v ss v l2 /v l3 /v cc v l1 /v ss v l2 /v l3 /v cc v l1 /v ss v l2 /v l3 /v cc (1) ports p0 1 ?0 7 , p1 1 ?1 5 data bus port latch interface logic level shift circuit pull-up port segment segment/port lcd drive timing segment output enable bit segment data port direction register port direction register (2) ports p0 0 , p1 0 data bus port latch interface logic level shift circuit port segment segment/port lcd drive timing segment data port direction register direction register pull-up data bus port latch interface logic level shift circuit port segment segment/port lcd drive timing segment data port p3 output control bit pull-up (3) port p3 data bus port latch direction register key input interrupt input int 1 , int 2 interrupt input except p1 6 , p1 7 pull-up control data bus port latch direction register serial i/o1 enable bit serial i/o1 input receive enable bit segment output enable bit segment output enable bit port p3 output control bit
rev.1.00 sep 06, 2006 page 19 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 15 port block diagram (2) (6) port p4 5 (7) port p4 6 (8) port p4 7 (9) ports p5 2 ,p5 3 (10) ports p5 0 ,p5 1 pwm function enable bit pwm output (11) port p5 4 pulse output mode timer output cntr 0 interrupt input pull-up control direction register data bus port latch serial i/o1 output p4 5 /txd p-channel output disable bit serial i/o1 enable bit transmit enable bit serial i/o1 clock output direction register data bus port latch pull-up control serial i/o1 enable bit serial i/o1 clock input serial i/o1 synchronous clock selection bit serial i/o1 mode selection bit serial i/o1 enable bit pull-up control serial i/o1 mode selection bit serial i/o1 enable bit s rdy1 output enable bit direction register data bus port latch serial i/o1 ready output direction register data bus port latch pull-up control real time port control bit real time port data pull-up control direction register data bus port latch pull-up control direction register data bus port latch
rev.1.00 sep 06, 2006 page 20 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 16 port block diagram (3) (12) port p4 3 t out / output enable bit timer 2 t out output system clock output t out / output selection bit (13) ports p4 0 ,p7 1 ?7 7 (14) port p5 5 cntr 1 interrupt input (15) ports p5 6 ,p5 7 a/d external trigger input d/a converter output except p5 6 (16) ports p6 4 ?6 7 (17) port p6 0 analog input pin selection bit a/d converter input serial i/o2 input da 1 , da 2 output enable bits direction register port latch data bus pull-up control direction register port latch data bus direction register port latch data bus pull-up control direction register port latch data bus pull-up control direction register port latch data bus pull-up control analog input pin selection bit a/d converter input direction register port latch data bus pull-up control
rev.1.00 sep 06, 2006 page 21 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 17 port block diagram (4) (18) port p6 1 (19) port p6 2 (20) port p6 3 serial i/o2 output serial i/o2 transmit end signal serial i/o2 synchronous clock selection bit serial i/o2 port selection bit pull-up control analog input pin selection bit a/d converter input p6 1 /s out2 p-channel output disable bit (21) com 0 com 3 (22) seg 0 ?eg 17 v l3 v l2 v l1 v ss v l2 /v l3 v l1 /v ss (23) port p7 0 int 0 input serial i/o2 synchronous clock selection bit serial i/o2 clock output serial i/o2 clock input serial i/o2 port selection bit synchronous clock output pin selection bit a/d converter input serial i/o2 clock output a/d converter input direction register port latch data bus pull-up control direction register port latch data bus analog input pin selection bit pull-up control direction register port latch data bus analog input pin selection bit serial i/o2 synchronous clock selection bit serial i/o2 port selection bit data bus the gate input signal of each transistor is controlled by the lcd duty ratio and the bias value. the voltage applied to the sources of p- channel and n-channel transistors is the controlled voltage by the bias value. synchronous clock output pin selection bit
rev.1.00 sep 06, 2006 page 22 of 88 rej03b0181-0100 3826 group (one time prom version) interrupts i nterrupts occur by seventeen sources: seven external, nine inter- nal, and one software. when an interrupt request is accepted, the program branches to the interrupt jump destination address set in the vector address (see table 8). interrupt control each interrupt is controlled by an interrupt request bit, an interrupt enable bit, and the interrupt disable flag except for the software in- terrupt set by the brk instruction. an interrupt is accepted if the corresponding interrupt request and enable bits are ??and the in- terrupt disable flag is ?? interrupt enable bits can be set to ??or ??by program. interrupt request bits can be set to ??by program, but cannot be set to ??by program. the brk instruction interrupt and reset cannot be disabled with any flag or bit. when the interrupt disable (i) flag is set to ?? all interrupt requests except the brk instruction interrupt and reset are not accepted. when several interrupt requests occur at the same time, the inter- rupts are received according to priority. interrupt operation by acceptance of an interrupt, the following operations are auto- matically performed: 1. the contents of the program counter and the processor status register are automatically pushed onto the stack. 2. the interrupt jump destination address is read from the vector table into the program counter. 3. the interrupt disable flag is set to ??and the corresponding in- terrupt request bit is set to ?? notes1: vector addresses contain interrupt jump destination addresses. 2: reset is not an interrupt. reset has the higher priority than all interrupts. t able 8 interrupt vector addresses and priority remarks interrupt request generating conditions at reset at detection of either rising or falling edge of int 0 input at detection of either rising or falling edge of int 1 input at completion of serial i/o1 data reception at completion of serial i/o1 transmit shift or when transmis- sion buffer is empty interrupt source low high priority v ector addresses (note 1) reset (note 2) int 0 int 1 serial i/o1 reception serial i/o1 transmission t imer x t imer y t imer 2 t imer 3 cntr 0 cntr 1 t imer 1 int 2 serial i/o2 key input (key-on wake-up) adt a/d conversion brk instruction 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 fffd 16 fffb 16 fff9 16 fff7 16 fff5 16 fff3 16 fff1 16 ffef 16 ffed 16 ffeb 16 ffe9 16 ffe7 16 ffe5 16 ffe3 16 ffe1 16 ffdf 16 ffdd 16 fffc 16 fffa 16 fff8 16 fff6 16 fff4 16 fff2 16 fff0 16 ffee 16 ffec 16 ffea 16 ffe8 16 ffe6 16 ffe4 16 ffe2 16 ffe0 16 ffde 16 ffdc 16 at timer x underflow at timer y underflow at timer 2 underflow at timer 3 underflow at detection of either rising or falling edge of cntr 0 input at detection of either rising or falling edge of cntr 1 input at timer 1 underflow at detection of either rising or falling edge of int 2 input at completion of serial i/o2 data transmission or reception at falling of conjunction of input level for port p2 (at input mode) at falling edge of adt input at completion of a/d conversion at brk instruction execution non-maskable external interrupt (active edge selectable) external interrupt (active edge selectable) v alid when serial i/o1 is selected v alid when serial i/o1 is selected external interrupt (active edge selectable) external interrupt (active edge selectable) external interrupt (active edge selectable) v alid when serial i/o2 is selected external interrupt (valid at falling) v alid when adt interrupt is selected external interrupt (valid at falling) v alid when a/d interrupt is selected non-maskable software interrupt
rev.1.00 sep 06, 2006 page 23 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 18 interrupt control fig. 19 structure of interrupt-related registers notes on interrupts when setting the followings, the interrupt request bit may be set to ?? ?hen switching external interrupt active edge related register: interrupt edge selection register (address 3a 16 ) t imer x mode register (address 27 16 ) t imer y mode register (address 28 16 ) ?hen switching interrupt sources of an interrupt vector address where two or more interrupt sources are allocated related register: interrupt source selection bit of ad control reg- ister (bit 6 of address 34 16 ) when not requiring for the interrupt occurrence synchronous with these setting, take the following sequence. ? set the corresponding interrupt enable bit to ??(disabled). ? set the interrupt edge select bit (polarity switch bit) or the inter- rupt source selection bit. ? set the corresponding interrupt request bit to ??after 1 or more instructions have been executed. ? set the corresponding interrupt enable bit to ??(enabled). i n t e r r u p t r e q u e s t b i t i n t e r r u p t e n a b l e b i t i n t e r r u p t d i s a b l e f l a g ( i ) brk inst ruct ion rese t in te rr upt request acceptance b7 b0 interrupt edge selection register int 0 interrupt edge selection bit int 1 interrupt edge selection bit int 2 interrupt edge selection bit not used (??at reading) (intedge : address 003a 16 ) interrupt request register 1 int 0 interrupt request bit int 1 interrupt request bit serial i/o1 receive interrupt request bit serial i/o1 transmit interrupt request bit timer x interrupt request bit timer y interrupt request bit timer 2 interrupt request bit timer 3 interrupt request bit interrupt control register 1 int 0 interrupt enable bit int 1 interrupt enable bit serial i/o1 receive interrupt enable bit serial i/o1 transmit interrupt enable bit timer x interrupt enable bit timer y interrupt enable bit timer 2 interrupt enable bit timer 3 interrupt enable bit 0 : no interrupt request issued 1 : interrupt request issued (ireq1 : address 003c 16 ) (icon1 : address 003e 16 ) interrupt request register 2 cntr 0 interrupt request bit cntr 1 interrupt request bit timer 1 interrupt request bit int 2 interrupt request bit serial i/o2 interrupt request bit key input interrupt request bit adt/a/d conversion interrupt request bit not used (??at reading) (ireq2 : address 003d 16 ) interrupt control register 2 cntr 0 interrupt enable bit cntr 1 interrupt enable bit timer 1 interrupt enable bit int 2 interrupt enable bit serial i/o2 interrupt enable bit key input interrupt enable bit adt/a/d conversion interrupt enable bit not used (??at reading) (write ??to this bit) 0 : interrupts disabled 1 : interrupts enabled (icon2 : address 003f 16 ) 0 : falling edge active 1 : rising edge active b7 b0 b7 b0 b7 b0 b7 b0 0
rev.1.00 sep 06, 2006 page 24 of 88 rej03b0181-0100 3826 group (one time prom version) key input interrupt (key-on wake up) the key input interrupt is enabled when any of port p2 is set to in- put mode and the bit corresponding to key input control register is set to ?? a key input interrupt request is generated by applying ??level voltage to any pin of port p2 of which key input interrupt is en- abled. in other words, it is generated when and of input level goes from ??to ?? a connection example of using a key input in- terrupt is shown in figure 20, where an interrupt request is gener- ated by pressing one of the keys consisted as an active-low key matrix which inputs to ports p2 0 ?2 3 . fig. 20 connection example when using key input interrupt and port p2 block diagram p o r t p 2 0 l a t c h p o r t p 2 0 d i r e c t i o n r e g i s t e r = 0 p o r t p 2 1 l a t c h port p2 1 direction register = 0 p o r t p 2 2 l a t c h port p2 2 direction register = 0 port p2 3 latch port p2 3 direction register = 0 p o r t p 2 4 l a t c h port p2 4 direction register = 1 p o r t p 2 5 l a t c h p o r t p 2 5 d i r e c t i o n r e g i s t e r = 1 port p2 6 latch port p2 6 direction register = 1 p o r t p 2 7 l a t c h port p2 7 direction register = 1 p 2 0 i n p u t p2 1 input p 2 2 i n p u t p 2 3 i n p u t p2 4 output p 2 5 o u t p u t p 2 6 o u t p u t p 2 7 o u t p u t p u l l r e g i s t e r a b i t 7 p o r t p 2 i n p u t r e a d i n g c i r c u i t p o r t p x x l l e v e l o u t p u t ? p - c h a n n e l t r a n s i s t o r f o r p u l l - u p ? ? c m o s o u t p u t b u f f e r key i nput interrupt request p 2 7 ke y i n p u t c o n t r o l b i t p 2 6 k e y i n p u t c o n t r o l b i t ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? p2 5 key input co ntrol bit p 2 4 k e y i n p u t c o n t r o l b i t p 2 3 k e y i n p u t c o n t r o l b i t = 1 pull re gister a bit 6 = ? p2 2 key input cont rol bit = ? p 2 1 k e y i n p u t c o n t r o l b i t = 1 p2 0 key input cont rol bit = ?
rev.1.00 sep 06, 2006 page 25 of 88 rej03b0181-0100 3826 group (one time prom version) the key input interrupt is controlled by the key input control regis- ter and the port direction register. when enabling the key input interrupt, set ??to the key input control bit. a key input can be ac- cepted from pins set as the input mode in ports p2 0 ?2 7 . fig. 21 structure of key input control register p 2 0 k ey i nput contro l bi t p2 1 key input control bit p2 2 key input control bit p2 3 key input control bit p2 4 key input control bit p2 5 key input control bit p2 6 key input control bit p2 7 key input control bit 0 : k e y i n p u t i n t e r r u p t d i s a b l e d 1 : k e y i n p u t i n t e r r u p t e n a b l e d k ey i nput contro l reg i ster (kic : ad dress 0015 16 ) b 7 b 0
rev.1.00 sep 06, 2006 page 26 of 88 rej03b0181-0100 3826 group (one time prom version) timers the 3826 group has five timers: timer x, timer y, timer 1, timer 2, and timer 3. timer x and timer y are 16-bit timers, and timer 1, timer 2, and timer 3 are 8-bit timers. all timers are down count timers. when the timer reaches ?? an underflow occurs at the next count pulse and the corresponding timer latch is reloaded into the timer and the count is continued. when a timer underflows, the interrupt request bit corresponding to that timer is set to ?? fig. 22 timer block diagram ? p5 5 /cntr 1 ? 1 0 ?0??1??1 p5 4 /cntr 0 q q t s 0 ? 0 q d 0 q d ? 0 1 1 0 q t s 0 1 0 ? ? p 4 3 / /t out x c i n ? ? c n t r 0 a c t i v e e d g e s w i t c h b i t t i m e r 1 c o u n t s o u r c e s e l e c t i o n b i t real time port control bit ?? f ( x i n ) / 1 6 ( f ( x c i n ) / 1 6 w h e n = x c i n / 2 ) c n t r 1 a c t i v e e d g e s w i t c h b i t time r y stop control bit fa lling edge detection p e r i o d m e a s u r e m e n t m o d e time r y interrupt req uest pulse width hl continuously measur ement mode rising edge detection t i m e r y o p e r a t i n g m o d e b i t s time r x interrupt req uest t i m e r x m o d e r e g i s t e r w r i t e s i g n a l p 4 3 d i r e c t i o n r e g i s t e r p u l s e o u t p u t m o d e p5 4 latch time r x stop control bit time r x wr ite control bit l a t c h time r x operat- ing mode bits ?0??1??1 pulse width measur ement mode c n t r 0 a c t i v e e d g e s w i t c h b i t pulse output mode p5 4 direction register t o u t o u t p u t a c t i v e e d g e s w i t c h b i t 0 t i m e r 2 w r i t e c o n t r o l b i t time r 3 count source selection bit t i m e r 2 i n t e r r u p t r e q u e s t time r 3 interrupt req uest t i m e r 2 c o u n t s o u r c e s e l e c t i o n b i t t i m e r 1 i n t e r r u p t r e q u e s t d a t a b u s r e a l t i m e p o r t c o n t r o l b i t 1 r e a l t i m e p o r t c o n t r o l b i t 1 time r 3 latc h (8) t i m e r 3 r e g i s t e r ( 8 ) time r 1 latch (8) time r 1 register (8) time r 2 latc h (8) time r 2 register (8) timer x low-order register (8) time r x (low) latch (8) time r x (high) latch (8) time r y (low) latch (8) timer y (high) latch (8) l a t c h p 4 3 l a t c h f ( x i n ) / 1 6 ( f ( x c i n ) / 1 6 w h e n = x c i n / 2 ) f(x in )/16 (f(x cin )/16 when = x cin /2) f(x in )/16 (f(x cin )/16 when = x cin /2) f ( x i n ) / 1 6 ( f ( x c i n ) / 1 6 w h e n = x c i n / 2 ) p 5 2 / r t p 0 p 5 3 / r t p 1 rtp 0 data for real time port rtp 1 data for real time port p 5 2 d i r e c t i o n r e g i s t e r p 5 2 l a t c h p 5 3 d i r e c t i o n r e g i s t e r p 5 3 l a t c h timer x high-order register (8) timer y low-order register (8) t i m e r y h i g h - o r d e r r e g i s t e r ( 8 ) q t out / output selection bit t out / output enable bit t o u t / o u t p u t e n a b l e b i t
rev.1.00 sep 06, 2006 page 27 of 88 rej03b0181-0100 3826 group (one time prom version) tim er x ti mer x is a 16-bit timer and is equipped with the timer latch. the division ratio of timer x is given by 1/(n+1), where n is the value in the timer latch. timer x is a down-counter. when the contents of timer x reach ?000 16 ? an underflow occurs at the next count pulse and the contents of the timer latch are reloaded into the timer and the count is continued. when the timer underflows, the timer x interrupt request bit is set to ?? ti mer x can be selected in one of four modes by the timer x mode register and can be controlled the timer x write and the real time port. (1) timer mode the timer counts f(x in )/16 (or f(x cin )/16 in low-speed mode). (2) pulse output mode each time the timer underflows, a signal output from the cntr 0 pin is inverted. except for this, the operation in pulse output mode is the same as in timer mode. when using a timer in this mode, set the p5 4 /cntr 0 pin to output mode (set ??to bit 4 of port p5 direction register). (3) event counter mode the timer counts signals input through the cntr 0 pin. except for this, the operation in event counter mode is the same as in timer mode. when using a timer in this mode, set the p5 4 / cntr 0 pin to input mode (set ??to bit 4 of port p5 direction reg- ister). (4) pulse width measurement mode the count source is f(x in )/16 (or f(x cin )/16 in low-speed mode). if cntr 0 active edge switch bit is ?? the timer counts while the input signal of cntr 0 pin is at ?? if it is ?? the timer counts while the input signal of cntr 0 pin is at ?? when using a timer in this mode, set the p5 4 /cntr 0 pin to input mode (set ??to bit 4 of port p5 direction register). read and write to timer x high-order, low-order registers when reading and writing to the timer x high-order and low-order registers, be sure to read/write both the timer x high- and low-or- der registers. when reading the timer x high-order and low-order registers, read the high-order register first. when writing to the timer x high-order and low-order registers, write the low-order register first. the timer x cannot perform the correct operation if the next operation is per- formed. ?rite operation to the high- or low-order register before reading the timer x low-order register ?ead operation from the high- or low-order register before writing to the timer x high-order register fig. 23 structure of timer x mode register t i m e r x m o d e r e g i s t e r ( t x m : a d d r e s s 0 0 2 7 1 6 ) t i m e r x w r i t e c o n t r o l b i t 0 : w r i t e v a l u e i n l a t c h a n d t i m e r 1 : w r i t e v a l u e i n l a t c h o n l y r e a l t i m e p o r t c o n t r o l b i t 0 : r e a l t i m e p o r t f u n c t i o n i n v a l i d 1 : r e a l t i m e p o r t f u n c t i o n v a l i d r t p 0 d a t a f o r r e a l t i m e p o r t r t p 1 d a t a f o r r e a l t i m e p o r t t i m e r x o p e r a t i n g m o d e b i t s b 5 b 4 00 : t i m e r m o d e 01 : p u l s e o u t p u t m o d e 10 : e v e n t c o u n t e r m o d e 11 : p u l s e w i d t h m e a s u r e m e n t m o d e c n t r 0 a c t i v e e d g e s w i t c h b i t 0 : c o u n t a t r i s i n g e d g e i n e v e n t c o u n t e r m o d e s t a r t f r o m h o u t p u t i n p u l s e o u t p u t m o d e m e a s u r e h p u l s e w i d t h i n p u l s e w i d t h m e a s u r e m e n t m o d e f a l l i n g e d g e a c t i v e f o r c n t r 0 i n t e r r u p t 1 : c o u n t a t f a l l i n g e d g e i n e v e n t c o u n t e r m o d e s t a r t f r o m l o u t p u t i n p u l s e o u t p u t m o d e m e a s u r e l p u l s e w i d t h i n p u l s e w i d t h m e a s u r e m e n t m o d e r i s i n g e d g e a c t i v e f o r c n t r 0 i n t e r r u p t t i m e r x s t o p c o n t r o l b i t 0 : c o u n t s t a r t 1 : c o u n t s t o p b 7 b 0 t imer x write control which write control can be selected by the timer x write control bit (bit 0) of the timer x mode register (address 0027 16 ), writing data to both the latch and the timer at the same time or writing data only to the latch. when the operation ?riting data only to the latch?is selected, the value is set to the timer latch by writing data to the timer x register and the timer is updated at next underflow. after reset, the operation ?riting data to both the latch and the timer at the same time?is selected, and the value is set to both the latch and the timer at the same time by writing data to the timer x register. the write operation is independent of timer x count operation, operating or stopping. when the value is written in latch only, a value is simultaneously set to the timer x and the timer x latch if the writing in the high- order register and the underflow of timer x are performed at the same timing. unexpected value may be set in the high-order timer on this occasion. real time port control while the real time port function is valid, data for the real time port are output from ports p5 2 and p5 3 each time the timer x underflows. (however, if the real time port control bit is changed from ??to ??after set of the real time port data, data are output independent of the timer x operation.) if the data for the real time port is changed while the real time port function is valid, the changed data are output at the next underflow of timer x. before using this function, set the p5 2 /rtp 0 , p5 3 /rtp 1 pins to output mode (set ??to bits 2, 3 of port p5 direction register). note on cntr 0 interrupt active edge selection cntr 0 interrupt active edge depends on the cntr 0 active edge switch bit.
rev.1.00 sep 06, 2006 page 28 of 88 rej03b0181-0100 3826 group (one time prom version) t imer y t imer y is a 16-bit timer and is equipped with the timer latch. the division ratio of timer y is given by 1/(n+1), where n is the value in the timer latch. timer y is a down-counter. when the contents of timer y reach ?000 16 ? an underflow occurs at the next count pulse and the contents of the timer latch are reloaded into the timer and the count is continued. when the timer underflows, the timer y interrupt request bit is set to ?? t imer y can be selected in one of four modes by the timer y mode register. (1) timer mode the timer counts f(x in )/16 (or f(x cin )/16 in low-speed mode). (2) period measurement mode cntr 1 interrupt request is generated at rising or falling edge of cntr 1 pin input signal. simultaneously, the value in timer y latch is reloaded in timer y and timer y continues counting down. except for this, the operation in period measurement mode is the same as in timer mode. the timer value just before the reloading at rising or falling of cntr 1 pin input signal is retained until the next valid edge is input. the rising or falling timing of cntr 1 pin input signal can be discriminated by cntr 1 interrupt. when using a timer in this mode, set the p5 5 /cntr 1 pin to input mode (set ??to bit 5 of port p5 direction register). (3) event counter mode the timer counts signals input through the cntr 1 pin. except for this, the operation in event counter mode is the same as in timer mode. when using a timer in this mode, set the p5 5 /cntr 1 pin to input mode (set ??to bit 5 of port p5 direction register). (4) pulse width hl continuously measure- ment mode cntr 1 interrupt request is generated at both rising and falling edges of cntr 1 pin input signal. except for this, the operation in pulse width hl continuously measurement mode is the same as in period measurement mode. when using a timer in this mode, set the p5 5 /cntr 1 pin to input mode (set ??to bit 5 of port p5 direction register). note on cntr 1 interrupt active edge selection cntr 1 interrupt active edge depends on the value of the cntr 1 active edge switch bit. however, in pulse width hl continuously measurement mode, cntr 1 interrupt request is generated at both rising and falling edges of cntr 1 pin input signal regardless of the value of cntr 1 active edge switch bit. fig. 24 structure of timer y mode register ti mer y mo d e reg i ster (tym : ad dress 0028 16 ) b 7 b 0 n o t u s e d ( 0 a t r e a d i n g ) t i m e r y o p e r a t i n g m o d e b i t s b 5b 4 00 : t i m e r m o d e 01 : p e r i o d m e a s u r e m e n t m o d e 10 : e v e n t c o u n t e r m o d e 11 : p u l s e w i d t h h l c o n t i n u o u s l y m e a s u r e m e n t m o d e c n t r 1 a c t i v e e d g e s w i t c h b i t 0 : c o u n t a t r i s i n g e d g e i n e v e n t c o u n t e r m o d e m e a s u r e t h e f a l l i n g e d g e t o f a l l i n g e d g e p e r i o d i n p e r i o d m e a s u r e m e n t m o d e f a l l i n g e d g e a c t i v e f o r c n t r 1 i n t e r r u p t 1 : c o u n t a t f a l l i n g e d g e i n e v e n t c o u n t e r m o d e m e a s u r e t h e r i s i n g e d g e p e r i o d i n p e r i o d m e a s u r e m e n t m o d e r i s i n g e d g e a c t i v e f o r c n t r 1 i n t e r r u p t t i m e r y s t o p c o n t r o l b i t 0 : c o u n t s t a r t 1 : c o u n t s t o p
rev.1.00 sep 06, 2006 page 29 of 88 rej03b0181-0100 3826 group (one time prom version) t imer 1, timer 2, timer 3 t imer 1, timer 2, and timer 3 are 8-bit timers and are equipped with the timer latch. the count source for each timer can be se- lected by the timer 123 mode register. the division ratio of each timer is given by 1/(n+1), where n is the value in the timer latch. all timers are down-counters. when the contents of the timer reach ?0 16 ? an underflow occurs at the next count pulse and the contents of the timer latch are reloaded into the timer and the count is continued. when the timer underflows, the interrupt request bit corresponding to that timer is set to ?? when a value is written to the timer 1 register and the timer 3 reg- ister, a value is simultaneously set as the timer latch and the timer. when the timer 1 register, the timer 2 register, or the timer 3 regis- ter is read, the count value of the timer can be read. t imer 2 write control which write can be selected by the timer 2 write control bit (bit 2) of the timer 123 mode register (address 0029 16 ), writing data to both the latch and the timer at the same time or writing data only to the latch. when the operation ?riting data only to the latch?is selected, the value is set to the timer 2 latch by writing data to the timer 2 register and the timer 2 is updated at next underflow. after reset, the operation ?riting data to both the latch and the timer at the same time?is selected, and the value is set to both the timer 2 latch and the timer 2 at the same time by writing data to the timer 2 register. if the value is written in latch only, a value is simultaneously set to the timer 2 and the timer 2 latch when the writing in the high- order register and the underflow of timer 2 are performed at the same timing. t imer 2 output control when the timer 2 (t out ) output is enabled by the t out / output enable bit and the t out / output selection bit, an inversion signal from the t out pin is output each time timer 2 underflows. in this case, set the p4 3 / /t out pin to output mode (set ??to bit 3 of port p4 direction register). note on timer 1 to timer 3 when the count source of timers 1 to 3 is changed, the timer counting value may become arbitrary value because a thin pulse is generated in count input of timer. if timer 1 output is selected as the count source of timer 2 or timer 3, when timer 1 is written, the counting value of timer 2 or timer 3 may become undefined value because a thin pulse is generated in timer 1 output. therefore, set the value of timer in the order of timer 1, timer 2 and timer 3 after the count source selection of timer 1 to 3. fig. 25 structure of timer 123 mode register t out output act i ve e d ge sw i tc h bi t 0 : start at h output 1 : start at l output t out / output enablel bit 0 : t out / output disabled 1 : t out / output enabled time r 2 wr ite co ntrol bit 0 : write data in latch and counter 1 : write data in latch only timer 2 count source selection bit 0 : timer 1 output signal 1 : f(x in )/16 (or f(x cin )/16 in low-speed mode) timer 3 count source selection bit 0 : timer 1 output signal 1 : f(x in )/16 (or f(x cin )/16 in low-speed mode) timer 1 count source selection bit 0 : f(x in )/16 (or f(x cin )/16 in low-speed mode) 1 : f(x cin ) not used (?? at reading) ti mer 123 mo d e reg i ster (t123m :address 0029 16 ) n ote: s ystem c l oc k i s f(x cin ) /2 i n t h e l ow-spee d mo d e. b 7 b 0
rev.1.00 sep 06, 2006 page 30 of 88 rej03b0181-0100 3826 group (one time prom version) serial interface serial i/o1 serial i/o1 can be used as either clock synchronous or asynchro- nous (uart) serial i/o. a dedicated timer (baud rate generator) is also provided for baud rate generation. (1) clock synchronous serial i/o mode clock synchronous serial i/o mode is selected by setting the se- rial i/o1 mode selection bit of the serial i/o1 control register to ?? for clock synchronous serial i/o mode, the transmitter and the re- ceiver must use the same clock as an operation clock. when an internal clock is selected as an operation clock, transmit or receive is started by a write signal to the transmit buffer regis- ter. when an external clock is selected as an operation clock, serial i/ o1 becomes the state where transmit or receive can be performed by a write signal to the transmit buffer register. transmit and re- ceive are started by input of an external clock. fig. 26 block diagram of clock synchronous serial i/o1 fig. 27 operation of clock synchronous serial i/o1 function p 4 6 / s c l k 1 p 4 7 / s r d y 1 p 4 4 / r x d p 4 5 / t x d x i n 1 / 4 1/4 f / f serial i /o1 status register s e r i a l i / o 1 c o n t r o l r e g i s t e r r e c e i v e b u f f e r r e g i s t e r add re ss 0018 16 receive shift register r e c e i v e b u f f e r f u l l f l a g ( r b f ) r ece i ve i nterrupt request receive cl o ck control circuit shif t c l oc k s er i a l i / o 1 sync h rono us clock selection bit fr equency division ratio 1/(n+1) ba ud rate generator add re ss 001 c 16 brg c ount sour ce se l ect i on bi t f a l l i n g - e d g e d e t e c t o r d ata b us a d d r e s s 0 0 1 8 1 6 s h i f t c l o c k t r ansm i t s hif t reg i ster s hif t comp l et i on fl ag (tsc) t r ansm i t b u ff er empty fl ag (t be) t r a n s m i t i n t e r r u p t r e q u e s t t r ansm i t i nterr upt sour ce se l ect i on bi t add re ss 0019 16 d ata b us add re ss 001 a 16 transmit buffer register transmit shift register transmit clock control circuit r e c e i v e e n a b l e s i g n a l s r d y 1 d 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 r b f = 1 t s c = 1 t b e = 0 tbe = ? tsc = 0 t r a n s m i t a n d r e c e i v e s h i f t c l o c k ( 1 / 2 t o 1 / 2 0 4 8 o f t h e i n t e r n a l c l o c k , o r a n e x t e r n a l c l o c k ) s e r i a l o u t p u t t x d s e r i a l i n p u t r x d w r i t e s i g n a l t o r e c e i v e / t r a n s m i t b u f f e r r e g i s t e r ( a d d r e s s 0 0 1 8 1 6 ) o verrun erro r (oe) detect ion n otes 1 : a f t e r d a t a t r a n s f e r r i n g , t h e t x d p i n k e e p s d 7 o u t p u t v a l u e . 2 : i f d a t a i s w r i t t e n t o t h e t r a n s m i t b u f f e r r e g i s t e r w h e n t s c = 0 , t h e t r a n s m i t c l o c k i s g e n e r a t e d c o n t i n u o u s l y a n d s e r i a l d a t a c a n b e o u t p u t c o n t i n u o u s l y f r o m t h e t x d p i n . 3 : s e l e c t t h e s e r i a l i / o 1 t r a n s m i t i n t e r r u p t r e q u e s t f a c t o r b e t w e e n w h e n t h e t r a n s m i t b u f f e r r e g i s t e r h a s e m p t i e d ( t b e = 1 ) o r a f t e r t h e t r a n s m i t s h i f t o p e r a t i o n h a s e n d e d ( t s c = 1 ) , b y s e t t i n g t h e t r a n s m i t i n t e r r u p t s o u r c e s e l e c t i o n b i t ( t i c ) o f t h e s e r i a l i / o 1 c o n t r o l r e g i s t e r . 4 : t h e s e r i a l i / o 1 r e c e i v e i n t e r r u p t r e q u e s t o c c u r s w h e n t h e r e c e i v e b u f f e r f u l l f l a g ( r b f ) b e c o m e s 1 . d 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 ( n o t e 1 ) ( n o t e 3 ) ( n o t e 2 ) (n ote 3) ( n o t e 4 )
rev.1.00 sep 06, 2006 page 31 of 88 rej03b0181-0100 3826 group (one time prom version) (2) asynchronous serial i/o (uart) mode clock asynchronous serial i/o mode (uart) is selected by setting the serial i/o1 mode selection bit of the serial i/o1 control register to ?? eight serial data transfer formats can be selected, and the transfer formats used by a transmitter and receiver must be identical. the transmit and receive shift registers each have a buffer regis- ter, but the two buffers have the same address (0018 16 ) in memory. since the shift register cannot be written to or read from directly, transmit data is written to the transmit buffer, and receive data is read from the receive buffer. the transmit buffer can also hold the next data to be transmitted during transmitting, and the receive buffer register can hold re- ceived one-byte data while the next one-byte data is being re- ceived. fig. 28 block diagram of uart serial i/o1 fig. 29 operation of uart serial i/o1 function x in 1 / 4 o e p e f e 1/16 1/16 d ata b us r e c e i v e b u f f e r r e g i s t e r a d d r e s s 0 0 1 8 1 6 r e c e i v e s h i f t r e g i s t e r r e c e i v e b u f f e r f u l l f l a g ( r b f ) r e c e i v e i n t e r r u p t r e q u e s t b a u d r a t e g e n e r a t o r f r equency di v i s i on rat i o 1/ ( n+1 ) add re ss 001 c 16 st/sp/pa generator tr ansmit buffer register d a t a b u s t r ansm i t s hif t reg i ster add re ss 0018 16 t r ansm i t s hif t reg i ster s hif t comp l et i on fl ag (tsc) t r ansm i t b u ff er empty fl ag (t be) t r ansm i t i nterr upt request add re ss 0019 16 s t d e t e c t o r s p d e t e c t o r u a r t c o n t r o l r e g i s t e r add re ss 001 b 16 c h a r a c t e r l e n g t h s e l e c t i o n b i t a d d r e s s 0 0 1 a 1 6 b r g c o u n t s o u r c e s e l e c t i o n b i t t r ansm i t i nterr upt sour ce se l ect i on bit s e r i a l i / o 1 s y n c h r o n i z a t i o n c l o c k s e l e c t i o n b i t cl oc k contro l c i rcu it c h a r a c t e r l e n g t h s e l e c t i o n b i t 7 b i t s 8 b i t s s e r i a l i / o 1 c o n t r o l r e g i s t e r p 4 6 / s c l k 1 s er i a l i / o 1 status reg i ste r p 4 4 / r x d p 4 5 / t x d t s c = 0 t b e = 1 r b f = 0 t b e = 0 t b e = 0 r b f = 1 r b f = 1 s t d 0 d 1 s p d 0 d 1 s t s p t b e = 1 ? s c = 1 ? s t d 0 d 1 s p d 0 d 1 s t s p t r a n s m i t b u f f e r r e g i s t e r w r i t e s i g n a l ? g e n e r a t e d a t 2 n d b i t i n 2 - s t o p - b i t m o d e 1 s t a r t b i t 7 o r 8 d a t a b i t s 1 o r 0 p a r i t y b i t 1 o r 2 s t o p b i t ( s ) 1 : e r r o r f l a g d e t e c t i o n o c c u r s a t t h e s a m e t i m e t h a t t h e r b f f l a g b e c o m e s 1 ( a t 1 s t s t o p b i t f o r r e c e p t i o n ) . 2 : t h e s e r i a l i / o 1 r e c e i v e i n t e r r u p t r e q u e s t o c c u r s w h e n t h e r e c e i v e b u f f e r f u l l f l a g ( r b f ) b e c o m e s 1 . 3 : s e l e c t t h e s e r i a l i / o 1 t r a n s m i t i n t e r r u p t r e q u e s t o c c u r r e n c e f a c t o r b e t w e e n w h e n t h e t r a n s m i t b u f f e r r e g i s t e r h a s e m p t i e d ( t b e = 1 ) o r a f t e r t h e t r a n s m i t s h i f t o p e r a t i o n h a s e n d e d ( t s c = 1 ) , b y s e t t i n g t h e t r a n s m i t i n t e r r u p t s o u r c e s e l e c t i o n b i t ( t i c ) o f t h e s e r i a l i / o 1 c o n t r o l r e g i s t e r . n o t e s s e r i a l o u t p u t t x d s e r i a l i n p u t r x d r e c e i v e b u f f e r r e g i s t e r r e a d s i g n a l t r a n s m i t o r r e c e i v e c l o c k ( n o t e s 1 , 2 ) ( n o t e s 1 , 2 )
rev.1.00 sep 06, 2006 page 32 of 88 rej03b0181-0100 3826 group (one time prom version) [transmit buffer/receive buffer register (tb/ rb)] 0018 16 the transmit buffer register and the receive buffer register are lo- cated at the same address. the transmit buffer register is write- only and the receive buffer register is read-only. if a character bit length is 7 bits, the msb of data stored in the receive buffer regis- ter is ?? [serial i/o1 status register (sio1sts)] 0019 16 the read-only serial i/o1 status register consists of seven flags (bits 0 to 6) which indicate the operating status of the serial i/o1 function and various errors. three of the flags (bits 4 to 6) are valid only in uart mode. the receive buffer full flag (bit 1) is set to ??when the receive buffer register is read. if there is an error, it is detected at the same time that data is transferred from the receive shift register to the receive buffer reg- ister, and the receive buffer full flag is set to ?? a write signal to the serial i/o1 status register sets all the error flags (oe, pe, fe, and se) (bit 3 to bit 6, respectively) to ?? writing ??to the serial i/o1 enable bit (sioe) also sets all the status flags to ?? includ- ing the error flags. all bits of the serial i/o1 status register are set to ??at reset, but if the transmit enable bit of the serial i/o1 control register has been set to ?? the transmit shift register shift completion flag and the transmit buffer empty flag become ?? [serial i/o1 control register (sio1con)] 001a 16 the serial i/o1 control register contains eight control bits for the serial i/o1 function. [uart control register (uartcon)] 001b 16 the uart control register consists of the bits which set the data format of a data transmit and receive, and the bit which sets the output structure of the p4 5 /t x d pin. [baud rate generator (brg)] 001c 16 the baud rate generator is the 8-bit counter equipped with a reload register. set the division value of the brg count source to the baud rate generator. the baud rate generator divides the frequency of the count source by 1/(n + 1), where n is the value written to the baud rate generator. notes on serial i/o when setting the transmit enable bit to ?? the serial i/o1 transmit interrupt request bit is automatically set to ?? when not requiring the interrupt occurrence synchronous with the transmission en- abled, take the following sequence. ? set the serial i/o1 transmit interrupt enable bit to ??(disabled). ? set the transmit enable bit to ?? ? set the serial i/o1 transmit interrupt request bit to ??after 1 or more instructions have been executed. ? set the serial i/o1 transmit interrupt enable bit to ??(enabled).
rev.1.00 sep 06, 2006 page 33 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 30 structure of serial i/o1 control registers brg c ount sour ce se l ect i on bi t (css) 0: f(x in ) 1: f(x in )/4 serial i/o1 synchronous clock selection bit (scs) 0: brg output divided by 4 when clock synchronous serial i/o is selected. brg output divided by 16 when uart is selected. 1: external clock input when clock synchronous serial i/o is se lected. external clock input divided by 16 when uart is sele cted. s rdy1 output enable bit (srdy) 0: p4 7 pi n ope ra tes as ordinary i/o pin 1: p4 7 pin operates as s rdy1 output pin tr ansmit interrupt source selection bit (tic) 0: interrupt when transmit buffer has emptied 1: interrupt when transmit shi ft operation is completed tr ansmit en able bit (te) 0: transmit disabled 1: transmit enabled receive enable bit (re) 0: receive disabled 1: receive enabled serial i/o1 mode selection bit (siom) 0: a synchronous serial i/o (uart) 1: clo ck synchronous serial i/o serial i/o1 enable bit (sioe) 0: serial i/o1 disabled (pins p4 4 ?4 7 o perate as ordinary i/o pins) 1: serial i/o1 enabled (pins p4 4 ?4 7 o perate as serial i/o pins) s er i a l i / o 1 contro l reg i ster (sio1con : ad dress 001a 16 ) b 7b 0 t r a n s m i t b u f f e r e m p t y f l a g ( t b e ) 0 : b u f f e r f u l l 1 : b u f f e r e m p t y r e c e i v e b u f f e r f u l l f l a g ( r b f ) 0 : b u f f e r e m p t y 1 : b u f f e r f u l l t r a n s m i t s h i f t r e g i s t e r s h i f t c o m p l e t i o n f l a g ( t s c ) 0 : t r a n s m i t s h i f t i n p r o g r e s s 1 : t r a n s m i t s h i f t c o m p l e t e d o v e r r u n e r r o r f l a g ( o e ) 0 : n o e r r o r 1 : o v e r r u n e r r o r p a r i t y e r r o r f l a g ( p e ) 0 : n o e r r o r 1 : p a r i t y e r r o r f r a m i n g e r r o r f l a g ( f e ) 0 : n o e r r o r 1 : f r a m i n g e r r o r s u m m i n g e r r o r f l a g ( s e ) 0 : ( o e ) u ( p e ) u ( f e ) = 0 1 : ( o e ) u ( p e ) u ( f e ) = 1 n o t u s e d ( 1 a t r e a d i n g ) s e r i a l i / o 1 s t a t u s r e g i s t e r ( s i o 1 s t s : a d d r e s s 0 0 1 9 1 6 ) b 7b 0 u a r t c o n t r o l r e g i s t e r ( u a r t c o n : a d d r e s s 0 0 1 b 1 6 ) ch aracter l engt h se l ect i on bi t ( ch as) 0: 8 bits 1: 7 bits parity enable bit (pare) 0: parity checking disabled 1: parity che cking enabled parity selection bit (pars) 0: even parity 1: odd parity stop bit length selection bit (stps) 0: 1 stop bit 1: 2 stop bits p4 5 /t x d p-chan nel output disable bit (poff) 0: cmos output (in output mode) 1: n-channel open-drain output (in output mode) not used (?? at reading) b7 b0
rev.1.00 sep 06, 2006 page 34 of 88 rej03b0181-0100 3826 group (one time prom version) serial i/o2 serial i/o2 can be used only for clock synchronous serial i/o. for serial i/o2, the transmitter and the receiver must use the same clock as a synchronous clock. when an internal clock is se- lected as a synchronous clock, the serial i/o2 is initialized and, transmit and receive is started by a write signal to the serial i/o2 register. when an external clock is selected as an synchronous clock, the serial i/o2 counter is initialized by a write signal to the serial i/o2 register, serial i/o2 becomes the state where transmission or re- ception can be performed. write to the serial i/o2 register while s clk21 is ??state when an external clock is selected as an syn- chronous clock. either p6 2 /s clk21 or p6 3 /s clk22 pin can be selected as an output pin of the synchronous clock. in this case, the pin that is not se- lected as an output pin of the synchronous clock functions as a i/ o port. [serial i/o2 control register (sio2con)] 001d16 the serial i/o2 control register contains eight control bits for the serial i/o2 functions. after setting to this register, write data to the serial i/o2 register and start transmit and receive. fig. 31 structure of serial i/o2 control register fig. 32 block diagram of serial i/o2 function s e r i a l i / o 2 c o n t r o l r e g i s t e r ( s i o 2 c o n : a d d r e s s 0 0 1 d 1 6 ) b 7 i n t e r n a l s y n c h r o n o u s c l o c k s e l e c t b i t s 0 0 0 : f ( x i n ) / 8 0 0 1 : f ( x i n ) / 1 6 0 1 0 : f ( x i n ) / 3 2 0 1 1 : f ( x i n ) / 6 4 1 0 0 : 1 0 1 : 1 1 0 : f ( x i n ) / 1 2 8 1 1 1 : f ( x i n ) / 2 5 6 s e r i a l i / o 2 p o r t s e l e c t i o n b i t 0 : i / o p o r t 1 : s o u t 2 , s c l k 2 1 / s c l k 2 2 s i g n a l o u t p u t p 6 1 / s o u t 2 p - c h a n n e l o u t p u t d i s a b l e b i t 0 : c m o s o u t p u t ( i n o u t p u t m o d e ) 1 : n - c h a n n e l o p e n - d r a i n o u t p u t ( i n o u t p u t m o d e ) t r a n s f e r d i r e c t i o n s e l e c t i o n b i t 0 : l s b f i r s t 1 : m s b f i r s t s e r i a l i / o 2 s y n c h r o n o u s c l o c k s e l e c t i o n b i t 0 : e x t e r n a l c l o c k 1 : i n t e r n a l c l o c k s y n c h r o n o u s c l o c k o u t p u t p i n s e l e c t i o n b i t 0 : s c l k 2 1 1 : s c l k 2 2 b 0 b 2 b 1 b 0 do not select x in ? 0 0 1 0 1 s c l k 2 ( n o t e ) 1 / 8 1 / 1 6 1 / 3 2 1 / 6 4 1 / 1 2 8 1 / 2 5 6 d a t a b u s s e r i a l i / o 2 i n t e r r u p t r e q u e s t s e r i a l i / o 2 p o r t s e l e c t i o n b i t s e r i a l i / o 2 c o u n t e r ( 3 ) s e r i a l i / o 2 r e g i s t e r ( 8 ) s y n c h r o n o u s c i r c u i t s e r i a l i / o 2 s y n c h r o n o u s c l o c k s e l e c t i o n b i t e x t e r n a l c l o c k i n t e r n a l s y n c h r o n o u s c l o c k s e l e c t b i t s d i v i d e r p 6 3 l a t c h p 6 3 / s c l k 2 2 p 6 2 / s c l k 2 1 p 6 1 / s o u t 2 p 6 0 / s i n 2 p 6 2 l a t c h p 6 1 l a t c h ( n o t e ) n o t e : i t i s s e l e c t e d b y t h e s e r i a l i / o 2 s y n c h r o n o u s c l o c k s e l e c t i o n b i t , t h e s y n c h r o n o u s c l o c k o u t p u t p i n s e l e c t i o n b i t , a n d t h e s e r i a l i / o 2 p o r t s e l e c t i o n b i t .
rev.1.00 sep 06, 2006 page 35 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 33 timing of serial i/o2 function d 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 s y n c h r o n o u s c l o c k ( n o t e 1 ) serial i/o2 output s out2 serial i/o2 input s in2 serial i/o2 r egister write signal (notes 2, 3) s e r i a l i / o 2 i n t e r r u p t r e q u e s t b i t = 1 1 : w h e n t h e i n t e r n a l c l o c k i s s e l e c t e d a s t h e s y n c h r o n o u s c l o c k , t h e d i v i d e r a t i o c a n b e s e l e c t e d b y s e t t i n g b i t s 0 t o 2 o f t h e s e r i a l i / o 2 c o n t r o l r e g i s t e r . 2 : w h e n t h e i n t e r n a l c l o c k i s s e l e c t e d a s t h e s y n c h r o n o u s c l o c k , t h e s o u t 2 p i n g o e s t o h i g h i m p e d a n c e a f t e r t r a n s f e r c o m p l e t i o n . 3 : w h e n t h e e x t e r n a l c l o c k i s s e l e c t e d a s t h e s y n c h r o n o u s c l o c k , t h e s o u t 2 p i n k e e p s d 7 o u t p u t l e v e l a f t e r t r a n s f e r c o m p l e t i o n . h o w e v e r , i f s y n c h r o n o u s c l o c k s i n p u t a r e c a r r i e d o n , t h e t r a n s m i t d a t a w i l l b e o u t p u t c o n t i n u o u s l y f r o m t h e s o u t 2 p i n b e c a u s e s h i f t s o f s e r i a l i / o 2 s h i f t r e g i s t e r i s c o n t i n u e d a s l o n g a s s y n c h r o n o u s c l o c k s a r e i n p u t . n o t e s serial i/o2 operating the serial i/o2 counter is initialized to ??by writing to the serial i/o2 register. after writing, whenever a synchronous clock changes from ??to ?? data is output from the s out2 pin. moreover, whenever a syn- chronous clock changes from ??to ?? data is taken in from the s in2 pin, and 1 bit shift of the serial i/o2 register is carried out si- multaneously. when the internal clock is selected as a synchronous clock, it is as follows if a synchronous clock is counted 8 times. ?erial i/o2 counter = ? ?ynchronous clock stops in ??state ?erial i/o2 interrupt request bit = ? the s out2 pin is in a high impedance state after transfer is com- pleted. when the external clock is selected as a synchronous clock, if a synchronous clock is counted 8 times, the serial i/o2 interrupt re- quest bit is set to ?? and the s out2 pin holds the output level of d 7 . however, if a synchronous clock continues being input, the shift of the serial i/o2 register is continued and transmission data continues being output from the s out2 pin.
rev.1.00 sep 06, 2006 page 36 of 88 rej03b0181-0100 3826 group (one time prom version) pulse width modulation (pwm) the 3826 group has a pwm function with an 8-bit resolution, using f(x in ) or f(x in )/2 as a count source. data setting the pwm output pins are shared with ports p5 0 and p5 1 . set the pwm period by the pwm prescaler, and set the period during which the output pulse is an ??by the pwm register. if pwm count source is f(x in ) and the value in the pwm prescaler is n and the value in the pwm register is m (where n = 0 to 255 and m = 0 to 255) : pwm period = 255 ? (n+1)/f(x in ) = 31.875 ? (n+1) s (when f(x in ) = 8 mhz) output pulse ??period = pwm period ? m/255 = 0.125 ? (n+1) ? m s (when f(x in ) = 8 mhz) pwm operation when either bit 1 (pwm 0 function enable bit) or bit 2 (pwm 1 func- tion enable bit) of the pwm control register or both bits are enabled, operation starts from initializing status, and pulses are output starting at ?? when one pwm output is enabled and that the other pwm output is enabled, pwm output which is enabled to output later starts pulse output from halfway of pwm period (see figure 37). when the pwm register or pwm prescaler is updated during pwm output, the pulses will change in the cycle after the one in which the change was made. fig. 34 timing of pwm cycle fig. 35 block diagram of pwm function 31.875 ? m ? (n+1) 255 s t = [31.875 ? (n+1)] s pwm output m: contents of pwm register n : contents of pwm prescaler t : pwm cycle (when f(x in ) = 8 mhz) d a t a b u s c ount source selecti on bit ? 1 p w m p r e s c a l e r p r e - l a t c h p w m r e g i s t e r p r e - l a t c h pwm pre scaler latch p w m r e g i s t e r l a t c h t rans f er contro l c i rcu i t p w m c i r c u i t 1 / 2 x i n pwm 0 f unct i on enable bit p 5 1 / p w m 1 pwm pre sca l er p w m 1 f u n c t i o n e n a b l e b i t p o r t p 5 1 l a c t h p o r t p 5 0 l a c t h p 5 0 / p w m 0
rev.1.00 sep 06, 2006 page 37 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 37 pwm output timing when pwm register or pwm prescaler is changed fig. 36 structure of pwm control register b 7 b 0 p w m c o n t r o l r e g i s t e r ( p w m c o n : a d d r e s s 0 0 2 b 1 6 ) c o u n t s o u r c e s e l e c t i o n b i t 0: f ( x i n ) 1: f ( x i n ) / 2 p w m 0 f u n c t i o n e n a b l e b i t 0: p w m 0 d i s a b l e d 1: p w m 0 e n a b l e d p w m 1 f u n c t i o n e n a b l e b i t 0: p w m 1 d i s a b l e d 1: p w m 1 e n a b l e d n o t u s e d ( 0 a t r e a d i n g ) t t2 c b t pwm register write signal pwm prescaler write signal (changes from ??to ??during ??period) (changes from ??to ?2?during pwm period) pwm (internal) a b t c t2 = stop pwm 0 function enable bit pwm 1 function enable bit pwm 0 output port port pwm 1 output port stop port when the contents of the pwm register or pwm prescaler have changed, the pwm output will change from the next period after the change.
rev.1.00 sep 06, 2006 page 38 of 88 rej03b0181-0100 3826 group (one time prom version) a/d converter [ad conversion low-order register (adl)] 0014 16 [ad conversion high-order register (adh)] 0035 16 the ad conversion registers are read-only registers that store the result of an a/d conversion. when reading this register during an a/d conversion, the previous conversion result is read. the high-order 8 bits of a conversion result is stored in the ad conversion high-order register (address 0035 16 ), and the low-or- der 2 bits of the same result are stored in bit 7 and bit 6 of the ad conversion low-order register (address 0014 16 ). bit 0 of the ad conversion low-order register is the conversion mode selection bit. when this bit is set to ?? that becomes the 10-bit a/d mode. when this bit is set to ?? that becomes the 8-bit a/d mode. [ad control register (adcon)] 0034 16 the ad control register controls the a/d conversion process. bits 0 to 2 of this register select specific analog input pins. bit 3 indi- cates the completion of an a/d conversion. the value of this bit re- mains at ??during an a/d conversion, then it is set to ??when the a/d conversion is completed. writing ??to this bit starts the a/d conversion. bit 4 is the v ref input switch bit which controls connection of the resistor ladder and the reference voltage input pin (v ref ). the resistor ladder is always connected to v ref when bit 4 is set to ?? when bit 4 is set to ?? the resistor ladder is cut off from v ref except for a/d conversion performed. when bit 5, which is the ad external trigger valid bit, is set to ?? a/d conversion starts also by a falling edge of an adt input. when using an a/d external trigger, set the p5 7 /adt pin to input mode (set ??to bit 7 of port p5 direc- tion register). comparison voltage generator the comparison voltage generator divides the voltage between av ss and v ref by 256 (when 8-bit a/d mode) or 1024 (when 10- bit a/d mode), and outputs the divided voltages. channel selector the channel selector selects one of the input ports p6 7 /an 7 ?6 0 /an 0 . comparator and control circuit the comparator and control circuit compare an analog input volt- age with the comparison voltage and store the result in the ad conversion register. when an a/d conversion is completed, the control circuit sets the ad conversion completion bit and the a/d conversion interrupt request bit to ?? note that because the comparator consists of a capacitor coupling, set f(x in ) to 500 khz or more during an a/d conversion. use the clock divided from the main clock f(x in ) as the system clock . fig. 38 structure of a/d converter-related registers ad control register (adcon : address 0034 16 ) ad conversion completion bit 0 : conversion in progress 1 : conversion completed analog input pin selection bits b2b1b0 0 0 0 : p6 0 /an 0 0 0 1 : p6 1 /an 1 0 1 0 : p6 2 /an 2 0 1 1 : p6 3 /an 3 1 0 0 : p6 4 /an 4 1 0 1 : p6 5 /an 5 1 1 0 : p6 6 /an 6 1 1 1 : p6 7 /an 7 v ref input switch bit 0 : auto 1 : on ad external trigger valid bit 0 : a/d external trigger invalid 1 : a/d external trigger valid b7 b0 interrupt source selection bit 0 : interrupt request at ad conversion completed 1 : interrupt request at adt input falling not used (??at reading) ad conversion low-order register (adl : address 0014 16 ) conversion mode selection bit 0 : 10-bit a/d mode 1 : 8-bit a/d mode not used (??at reading) ?or 10-bit a/d mode a/d conversion result ?or 8-bit a/d mode not used (undefined at reading) b7 b0
rev.1.00 sep 06, 2006 page 39 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 40 a/d converter block diagram fig. 39 read of ad conversion register ?0-bit reading (read address 0035 16, then 0014 16 ) ad conversion high-order register (adh: address 0035 16 ) ad conversion low-order register (adl: address 0014 16 ) b0 b7 b0 b1 b7 b6 b5 b4 b3 b2 b7 b0 b9 b8 b7 b6 b5 b4 b3 b2 b7 b0 (high-order) (low-order) note : bits 0 to 5 of address 0014 16 become ??at reading. b1 b0 ?-bit reading (read only address 0035 16 ) ad conversion high-order register conversion mode selection bit 0 : 10-bit a/d mode 1 : 8-bit a/d mode comparator a/d control circuit adt/a/d interrupt request av ss v re p6 0 /s in2 /an 0 data bus ad control register b 7 b 0 ad conversion high-order register resistor ladder channel selector p6 7 /an 7 p6 6 /an 6 p6 5 /an 5 p6 4 /an 4 p6 3 /s clk22 /an 3 p6 2 /s clk21 /an 2 p6 1 /s out2 /an 1 p5 7 /adt/da 2 8 3 (address 0035 16 ) ad conversion low-order register (address 0014 16 )
rev.1.00 sep 06, 2006 page 40 of 88 rej03b0181-0100 3826 group (one time prom version) d/a converter the 3826 group has a d/a converter with 8-bit resolution and 2 channels (da 1 , da 2 ). the d/a converter is started by setting the dtmf/da 1 selection bit and the ctcss/da 2 selection bit to ??and setting the value in the da conversion register. when the dtmf/da 1 output enable bit and the ctcss/da 2 output enable bit is set to ?? the result of d/ a conversion is output from the corresponding da 1 pin or da 2 pin. when using the d/a converter, set the p5 6 /da 1 pin and the p5 7 / da 2 pin to input mode (set ??to bits 6, 7 of port p5 direction reg- ister) and the pull-up resistor should be in the off state previously. the output analog voltage v is determined by the value n (base 10) in the da conversion register as follows: v=v ref ? n/256 (n=0 to 255) where v ref is the reference voltage. at reset, the da conversion registers are set to ?0 16 ? the dtmf/ da 1 output enable bit and the ctcss/da 2 output enable bit are set to ?? and the p5 6 /da 1 pin and the p5 7 /da 2 pin goes to high impedance state. the d/a converter is not buffered, so connect an external buffer when driving a low-impedance load. note on applied voltage to v ref pin when the p5 6 /da 1 pin and the p5 7 /da 2 pin are used as an i/o port, be sure to apply vcc to v ref pin. when these pins are used as d/a conversion output pins, the vcc level is recommended for the applied voltage to v ref pin. when the voltage below vcc level is applied, the d/a conversion accuracy may be worse. fig. 41 structure of da control register fig. 42 block diagram of d/a converter b7 b0 da control register (dacon : address 0036 16 ) dtm f/da 1 output enable bit 0 : disabled 1 : enabled ctcss timer write control bit 0 : write value in latch only 1 : write value in latch and counter high/low group timer write control bit 0 : write value in latch only 1 : write value in latch and counter high group rom data selection bit 0 : sine wave 1 : ??fixed low group rom data selection bit 0 : sine wave 1 : ??fixed ctcss/da 2 selection bit 0 : da2 function 1 : ctcss function dtmf/da 1 selection bit 0 : da1 function 1 : dtmf function ctcss/da 2 output enable bit 0 : disabled 1 : enabled p5 6 /da 1 p5 7 /da 2 5-bit adder selector low group rom 5bit ? 32 selector 8-bit timer 8-bit timer x in /2 ctcss rom 8bit ? 64 10-bit timer selector high group rom 5bit ? 32 * selector selector data bus da1 conversion register (8) da 1 output enable bit da 2 out p ut enable bit data bus r-2r resistor ladder r-2r resistor ladder da2 conversion register (8) when dtmf is selected, the high-order 6 bits are automatically set as the dtmf output. the low-order 2 bits are set by writing data to the d-a1 conversion register. *
rev.1.00 sep 06, 2006 page 41 of 88 rej03b0181-0100 3826 group (one time prom version) dtmf function (dual tone multi frequency) dtmf function is used to output the result which generated auto- matically the waveform of sine wave of two kinds of different frequency, and added two kinds of this sine wave as an analog value. dtmf output waveform can be output from da 1 pin. dtmf wave- form is output by setting ??(enabled) to the dtmf/da 1 output enable bit (bit 0 of address 0036 16 ), and setting ??to the dtmf/ da 1 selection bit (bit 2 of address 0036 16 ). at this time, set ??(in- put state) to the direction register of ports p5 6 /da 1 pin and pull-up resistor to be off state. in order to set two kinds of frequency which generates dtmf waveform, write a value in the dtmf high group timer and the dtmf low group timer, respectively. the value written in each above-mentioned timer is n, the sine wave of the following fre- quency can be generated. f = (hz) set ?6 16 ?or more to the dtmf high group timer and the dtmf low group timer. after reset release, ?6 16 ?is automatically set to them. f(x in )/2 (n+1) ? 32 the digital value for one period of high group and low group out- put is shown in figure 43. dtmf output is automatically input to high-order 6 bits of the d/a1 conversion register as 6-bit d/a data. the low-order 2 bits of the d/a1 conversion register are fixed to the value written in the d/a1 conversion register. moreover, only the sine wave of high group can be output by set- ting ??to the bit 4 of the d/a control register. by setting ??to the bit 5 of the d/a control register similarly, only the sine wave of low group can be output. writing to the dtmf high group timer and the dtmf low group timer can also be changed to ?riting to latch and timer simultaneously?by setting ??to the bit 6 of the d/a con trol register. ?riting to only latch?is set after reset release. if the d/a1 conversion register is read when the dtmf function is selected,the digital value of dtmf output can be read. fig. 43 waveform data of high group and low group da 1 value (8bit) * 0 5 10 15 20 25 30 14 16 28 16 3c 16 50 16 64 16 78 16 0 16 0 5 10 15 20 25 30 da 1 value (8bit) * 14 16 28 16 3c 16 50 16 64 16 78 16 0 16 da data of low group waveform (1 period) for dtmf da data of high group waveform (1 period) for dtmf * this is the value set to da1 conversion register when the low-order 2 bits are ?? conversion time of high group rom conversion time of low group rom
rev.1.00 sep 06, 2006 page 42 of 88 rej03b0181-0100 3826 group (one time prom version) low groupt frequency, high group frequency low group frequency and high group frequency are as follows. (1) low group frequency ?697 hz ?770 hz ?852 hz ?941 hz (2) high group frequency ?1209 hz ?1336 hz ?1477 hz ?1633 hz t able 9 shows the example of frequency accuracy (at f(x in )=4 mhz). fig. 44 key matrix of telephone and rating frequency t able 9 example of frequency accuracy (at f(x in ) = 4 mhz) rating frequency (hz) 697 770 852 941 1209 1336 1477 1633 n (timer value) 89 80 72 65 51 46 41 37 error frequency (hz) ?.6 1.6 4.2 5.9 ?.1 ?.3 1 1.1 1 1.7 deviation (%) ?.367 0.208 0.488 0.630 ?.580 ?.460 0.750 0.720 output frequency (hz) 694.4 771.6 856.2 946.9 1201.9 1329.7 1488.1 1644.7 1 2 3 4 5 6 b 7 8 9 * 0 # a c d 697hz 770hz 852hz 941hz 1209hz 1336hz 1477hz 1633hz low group frequency high group frequency
rev.1.00 sep 06, 2006 page 43 of 88 rej03b0181-0100 3826 group (one time prom version) ctcss function (continuous tone-controlled squelch system) the ctcss function is used to generate the sine wave of single frequency automatically. the ctcss output waveform can be out- put from da 2 pin. ctcss waveform is outputted by setting ??to the ctcss/da 2 output enable bit (bit 1 of address 0036 16 ), and setting ??to the ctcss/da 2 selection bit (bit 3 of address 0036 16 ). in order to set the frequency of ctcss output, value is written in the ctcss timer. the ctcss timer consists of a 10-bit timer. when writing a value to the ctcss timer, write the low-or- der byte first. rating frequency (hz) 67.0 77.0 88.5 100.0 107.2 1 14.8 123.0 131.8 141.3 151.4 162.2 173.8 186.2 203.5 218.1 233.6 250.3 n (timer value) 465 405 352 312 291 271 253 236 220 205 192 179 167 153 142 133 124 error frequency (hz) 0.06 ?.03 0.027 ?.16 ?.18 0.09 0.03 0.06 0.10 0.30 ?.28 ?.19 ?.19 ?.58 0.43 ?.39 ?.30 deviation (%) 0.089 ?.038 0.030 ?.160 ?.167 0.078 0.026 0.043 0.073 0.198 ?.174 ?.109 ?.101 ?.284 0.198 ?.167 ?.120 output frequency (hz)] 67.06 76.97 88.53 99.84 107.02 1 14.89 123.03 131.86 141.40 151.70 161.92 173.61 186.01 202.92 218.53 233.20 250.00 t able 10 example of frequency accuracy (at f(x in ) = 4 mhz) f (x in )/2 (n+1) ? 64 vcc 2 when reading a value from the ctcss timer, read the high-order byte first. by the value written in the ctcss timer is n, the sine wave of the following frequency is generated. f = (hz) set ?06 16 ?or more to the ctcss timer. ?0 16 ?is automatically set to the high-order of the ctcss timer and ?6 16 ?is automati- cally set to the low-order of the ctcss timer after reset release. the amplitude of ctcss output is obtained by the following for- mula. c = if the d/a2 conversion register is read when the ctcss function is selected, the digital value of ctcss output can be read. t able 10 shows the example of frequency accuracy (at f(x in ) = 4 mhz). fig. 45 equivalent connection circuit of d/a converter av ss v ref ? ? msb ? ? r 2r r 2r r 2r r 2r r 2r r 2r r 2r 2r lsb 2r da i dai conversion register da i output enable bit
rev.1.00 sep 06, 2006 page 44 of 88 rej03b0181-0100 3826 group (one time prom version) lcd drive control circuit the 3826 group has the liquid crystal display (lcd) drive control circuit consisting of the following. lcd display ram segment output enable register lcd mode register v oltage multiplier selector t iming controller common driver segment driver bias control circuit a maximum of 40 segment output pins and 4 common output pins can be used. up to 160 pixels can be controlled for lcd display. when the lcd fig. 46 structure of segment output enable register and lcd mode register enable bit is set to ??(lcd on) after data is set in the lcd mode register, the segment output enable register and the lcd display ram, the lcd drive control circuit starts reading the display data automatically, performs the bias control and the duty ratio control, and displays the data on the lcd panel. ta ble 11 maximum number of display pixels at each duty ratio duty ratio maximum number of display pixel 80 dots or 8 segment lcd 10 digits 120 dots or 8 segment lcd 15 digits 160 dots or 8 segment lcd 20 digits 2 3 4 s e g m e n t o u t p u t e n a b l e b i t 0 0 : o u t p u t p o r t s p 3 0 p 3 5 1 : s e g m e n t o u t p u t s e g 1 8 s e g 2 3 s e g m e n t o u t p u t e n a b l e b i t 1 0 : o u t p u t p o r t s p 3 6 , p 3 7 1 : s e g m e n t o u t p u t s e g 2 4 , s e g 2 5 s e g m e n t o u t p u t e n a b l e b i t 2 0 : i / o p o r t s p 0 0 p 0 5 1 : s e g m e n t o u t p u t s e g 2 6 s e g 3 1 s e g m e n t o u t p u t e n a b l e b i t 3 0 : i / o p o r t s p 0 6 , p 0 7 1 : s e g m e n t o u t p u t s e g 3 2 , s e g 3 3 s e g m e n t o u t p u t e n a b l e b i t 4 0 : i / o p o r t p 1 0 1 : s e g m e n t o u t p u t s e g 3 4 s e g m e n t o u t p u t e n a b l e b i t 5 0 : i / o p o r t s p 1 1 p 1 5 1 : s e g m e n t o u t p u t s e g 3 5 s e g 3 9 l c d o u t p u t e n a b l e b i t 0 : d i s a b l e d 1 : e n a b l e d n o t u s e d ( 0 a t r e a d i n g ) ( w r i t e 0 t o t h i s b i t a t w r i t i n g . ) s egment output ena bl e reg i ster ( seg : address 0038 16 ) b 7 b 0 lcd mo d e reg i ster (lm : addr e ss 00 39 16 ) d uty rat i o se l ect i on bi ts b1b0 0 0 : no t us ed 0 1 : 2 duty (use com 0 , com 1 ) 1 0 : 3 duty (use com 0 ?om 2 ) 1 1 : 4 duty (use com 0 ?om 3 ) bias control bit 0 : 1/ 3 bi as 1 : 1/ 2 bi as lcd enab le bit 0 : lcd off 1 : lcd on voltage multiplier control bit 0 : vo ltage multiplier disable 1 : volt age multip lier en able l cd circuit di vider division ratio selection bits b6b5 0 0 : clock input 0 1 : 2 division of clock in put 1 0 : 4 division of clock in put 1 1 : 8 division of clock in put l cdck count source selection bit (note) 0 : f(x cin )/32 1 : f(x in )/81 92 (f(x cin )/8192 in low-speed mode) n o t e : l c d c k i s a c l o c k f o r a l c d t i m i n g c o n t r o l l e r . b 7 b 0 0
rev.1.00 sep 06, 2006 page 45 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 47 block diagram of lcd controller/driver d a t a b u s t i m i n g c o n t r o l l e r l c d d i v i d e r f ( x i n ) / 8 1 9 2 ( f ( x c i n ) / 8 1 9 2 i n l o w - s p e e d m o d e ) f ( x c i n ) / 3 2 c o m 0 c o m 1 c o m 2 c o m 3 v s s v l 1 v l 2 v l 3 s e g 3 s e g 2 s e g 1 s e g 0 a d d r e s s 0 0 4 0 1 6 a d d r e s s 0 0 4 1 1 6 1 0 l c d c k l c d c k c o u n t s o u r c e s e l e c t i o n b i t l c d c i r c u i t d i v i d e r d i v i s i o n r a t i o s e l e c t i o n b i t s b i a s c o n t r o l b i t l c d e n a b l e b i t d u t y r a t i o s e l e c t i o n b i t s 2 2 s e l e c t o rs e l e c t o rs e l e c t o r s e l e c t o r s e l e c t o r s e l e c t o r l c d d i s p l a y r a m a d d r e s s 0 0 5 3 1 6 p 1 4 / s e g 3 8 p 3 0 / s e g 1 8 p 1 5 / s e g 3 9 l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t c o m m o n d r i v e r c o m m o n d r i v e r c o m m o n d r i v e r c o m m o n d r i v e r c 1 c 2 v o l t a g e m u l t i p l i e r c o n t r o l b i t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t l e v e l s h i f t s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r s e g m e n t d r i v e r b i a s c o n t r o l l c d o u t p u t e n a b l e b i t v c c
rev.1.00 sep 06, 2006 page 46 of 88 rej03b0181-0100 3826 group (one time prom version) vo ltage multiplier (3 times) the voltage multiplier performs threefold boosting. this circuit in- puts a reference voltage for boosting from lcd power input pin v l1 . set each bit of the segment output enable register and the lcd mode register in the following order for operating the voltage mul- tiplier. 1. set the segment output enable bits (bits 0 to 5) of the seg- ment output enable register to ??or ?? 2. set the duty ratio selection bits (bits 0 and 1), the bias con- trol bit (bit 2), the lcd circuit divider division ratio selection bits (bits 5 and 6), and the lcdck count source selection bit (bit 7) of the lcd mode register to ??or ?? 3. set the lcd output enable bit (bit 6) of the segment output enable register to ??(enabled). apply the limit voltage or less to the v l1 pin. 4. set the voltage multiplier control bit (bit 4) of the lcd mode register to ??(voltage multiplier enabled). however, be sure to select 1/3 bias for bias control. when voltage is input to the v l1 pin during operating the voltage multiplier, voltage that is twice as large as v l1 occurs at the v l2 pin, and voltage that is three times as large as v l1 occurs at the v l3 pin. notes on voltage multiplier when using the voltage multiplier, apply the limit voltage or less to the v l1 pin, then set the voltage multiplier control bit to ??(en- abled). when not using the voltage multiplier, set the lcd output enable bit to ?? then apply proper voltage to the lcd power input pins (v l1 ? l3 ). when the lcd output enable bit is set to ??(disabled) (during reset is included), the v l3 pin is connected to v cc inside of this microcomputer. when the voltage exceeding v cc is applied to v l3 , apply v l3 voltage after setting the lcd output enable bit to ??(enabled). fig. 48 example of circuit at each bias t able 12 bias control and applied voltage to v l1 ? l3 bias value 1/3 bias 1/2 bias v oltage value v l3 =v lcd v l2 =2/3 v lcd v l1 =1/3 v lcd v l3 =v lcd v l2 =v l1 =1/2 v lcd note : v lcd is the maximum value of supplied voltage for the lcd panel. bias control and applied voltage to lcd power input pins to the lcd power input pins (v l1 ? l3 ), apply the voltage shown in table 12 according to the bias value. select a bias value by the bias control bit (bit 2 of the lcd mode register). r 4 r 5 r 4 = r 5 1/2 bias r1 r 2 r 3 v cc v l 3 v l 2 c 2 c 1 v l 1 r1 = r2 = r3 v cc v l3 v l2 c 2 c 1 v l1 v l 3 v l 2 c 2 c 1 v l 1 o pen o pen c o n t r a s t c o n t r o l o pen o pen c ontrast contro l 1 / 3 b i a s w h e n n o t u s i n g t h e v o l t a g e m u l t i p l i e r 1 / 3 b i a s w h e n u s i n g t h e v o l t a g e m u l t i p l i e r
rev.1.00 sep 06, 2006 page 47 of 88 rej03b0181-0100 3826 group (one time prom version) (frequency of count source for lcdck) (divider division ratio for lcd) f(lcdck)= f(lcdck) duty ratio frame frequency= fig. 49 lcd display ram map common pin and duty ratio control the common pins (com 0 ?om 3 ) to be used are determined by duty ratio. select duty ratio by the duty ratio selection bits (bits 0 and 1 of the lcd mode register). after reset, the v cc (v l3 ) voltage is output from the common pins. lcd display ram addresses 0040 16 to 0053 16 are the designated ram for the lcd display. when ??are written to these addresses, the correspond- ing segments of the lcd display panel are turned on. lcd drive timing the frequency of internal signal lcdck decided lcd drive timing and the frame frequency can be determined with the following equation: t able 13 duty ratio control and common pins used duty ratio 2 3 4 common pins used notes 1: com 2 and com 3 are open. 2: com 3 is open. bit 1 0 1 1 bit 0 1 0 1 com 0 , com 1 (note 1) com 0 ?om 2 (note 2) com 0 ?om 3 duty ratio selection bits segment signal output pins segment signal output pins are classified into the segment-only pins (seg 0 ?eg 17 ), the segment or output port pins (seg 18 seg 25 ), and the segment or i/o port pins (seg 26 ?eg 39 ). segment signals are output according to the bit data of the lcd ram corresponding to the duty ratio. after reset, a v cc (=v l3 ) voltage is output to the segment-only pins and the segment/out- put port pins are the high impedance condition and pulled up to v cc (=v l3 ) voltage. also, the segment/i/o port pins (seg 26 ?eg 39 ) are set to input mode as i/o ports, and v cc (=v l3 ) is applied to them by pull-up resistor. 0 0 4 0 1 6 0 0 4 1 1 6 0 0 4 2 1 6 0 0 4 3 1 6 0 0 4 4 1 6 0 0 4 5 1 6 0 0 4 6 1 6 0 0 4 7 1 6 0 0 4 8 1 6 0 0 4 9 1 6 0 0 4 a 1 6 0 0 4 b 1 6 0 0 4 c 1 6 0 0 4 d 1 6 0 0 4 e 1 6 0 0 4 f 1 6 0 0 5 0 1 6 0 0 5 1 1 6 0 0 5 2 1 6 0 0 5 3 1 6 b i t a d d r e s s s e g 1 s e g 3 s e g 5 s e g 7 s e g 9 s e g 1 1 s e g 1 3 s e g 1 5 s e g 1 7 s e g 1 9 s e g 2 1 s e g 2 3 s e g 2 5 s e g 2 7 s e g 2 9 s e g 3 1 s e g 3 3 s e g 3 5 s e g 3 7 s e g 3 9 76543210 c o m 3 c o m 0 c o m 2 c o m 1 c o m 0 com 3 com 2 c o m 1 seg 0 seg 2 seg 4 seg 6 seg 8 seg 10 seg 12 seg 14 seg 16 seg 18 seg 20 seg 22 seg 24 seg 26 seg 28 seg 30 seg 32 seg 34 seg 36 seg 38
rev.1.00 sep 06, 2006 page 48 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 50 lcd drive waveform (1/2 bias) i n t e r n a l s i g n a l l c d c k t i m i n g 1 / 4 d u t y v o l t a g e l e v e l v l3 v l2 =v l1 v ss v l3 v ss c o m 0 c o m 1 c o m 2 c o m 3 seg 0 off on off on com 3 com 2 com 1 com 0 com 3 com 2 com 1 com 0 1 / 3 d u t y v l3 v l2 =v l1 v ss v l3 v ss o f f o n o noff on o f f 1 / 2 d u t y com 0 c o m 1 c o m 2 s e g 0 c o m 0 c o m 1 seg 0 v l3 v l2 =v l1 v ss v l3 v ss o f f o n off o n off o n o f f o n c o m 0 c o m 2 c o m 1 com 0 c o m 2 c o m 1 c o m 0 com 2 c o m 1 c o m 0 c o m 1 com 0 c o m 1 c o m 0 c o m 1 com 0
rev.1.00 sep 06, 2006 page 49 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 51 lcd drive waveform (1/3 bias) i n t e r n a l s i g n a l l c d c k t i m i n g 1 / 4 d u t y volta ge level v l 3 v s s c o m 0 c o m 1 c o m 2 c o m 3 s e g 0 o f fo n o f fo n c o m 3 com 2 c o m 1 c o m 0 c o m 3 c o m 2 c o m 1 com 0 1 / 3 d u t y o f f o n o no f f on o f f 1 / 2 d u t y com 0 com 1 c o m 2 s e g 0 c o m 0 c o m 1 s e g 0 off on off on off on off on v l 3 v l 2 v s s v l 1 v l 3 v l 2 v s s v l1 v l3 v s s v l3 v l 2 v ss v l 1 v l 3 v s s com 0 com 2 com 1 com 0 com 2 com 1 com 0 com 2 com 1 c o m 0 c o m 1 c o m 0 com 1 c o m 0 c o m 1 com 0
rev.1.00 sep 06, 2006 page 50 of 88 rej03b0181-0100 3826 group (one time prom version) w atchdog timer the watchdog timer gives a mean of returning to the reset status when a program cannot run on a normal loop (for example, be- cause of a software runaway). the watchdog timer consists of an 8-bit watchdog timer l and a 6- bit watchdog timer h. at reset or writing to the watchdog timer control register (address 0037 16 ), the watchdog timer is set to ?fff 16 ? when any data is not written to the watchdog timer con- trol register (address 0037 16 ) after reset, the watchdog timer is stopped. the watchdog timer starts to count down from ?fff 16 by writing to the watchdog timer control register and an internal re- set occurs at an underflow. accordingly, when using the watchdog timer function, write the watchdog timer control register before an underflow. the watchdog timer does not function when writing to the watchdog timer control register has not been done after reset. when not using the watchdog timer, do not write to it. when the watchdog timer control register is read, the following values are read: value of high-order 6-bit counter value of stp instruction disable bit value of count source selection bit. when the stp instruction disable bit is ?? the stp instruction is enabled. the stp instruction is disabled when this bit is set to ?? if the stp instruction which is disabled is executed, it is processed as an undefined instruction, so that a reset occurs internally. this bit can be set to ??but cannot be set to ??by program. this bit is ??after reset. when the watchdog timer h count source selection bit is ?? the detection time is set to 8.19 s at f(x cin ) = 32 khz and 32.768 ms at f(x in ) = 8 mhz. when the watchdog timer h count source selection bit is ?? the detection time is set to 32 ms at f(x cin ) = 32 khz and 128 s at f(x in ) = 8 mhz. there is no difference in the detection time be- tween the middle-speed mode and the high-speed mode. fig. 52 block diagram of watchdog timer fig. 53 structure of watchdog timer control register fig. 54 timing of reset output x in data bus x cin ? ? internal system clock selection bit (note) ? ? 1/16 watchdog timer h count source selection bit reset circuit undefined instruction reset ?f 16 ?is set when watchdog timer is written to. internal reset reset reset release time wait ?f 16 ?is set when watchdog timer is written to. stp instruction stp instruction disable bit watchdog timer h (6) watchdog timer l (8) note: this is the bit 7 of cpu mode re g ister and is used to switch the middle-/hi g h-s p eed mode and low-s p eed mode. b 7 b 0 w a t c h d o g t i m e r r e g i s t e r ( w d t c o n : a d d r e s s 0 0 3 7 1 6 ) s t p i n s t r u c t i o n d i s a b l e b i t 0 : s t p i n s t r u c t i o n e n a b l e d 1 : s t p i n s t r u c t i o n d i s a b l e d w a t c h d o g t i m e r h c o u n t s o u r c e s e l e c i o n b i t 0 : w a t c h d o g t i m e r l u n d e r f l o w 1 : f ( x i n ) / 1 6 o r f ( x c i n ) / 1 6 w a t c h d o g t i m e r h ( f o r r e a d - o u t o f h i g h - o r d e r 6 b i t ) 3 f f f 1 6 ? i s s e t t o t h e w a t c h d o g t i m e r b y w r i t i n g v a l u e s t o t h i s a d d r e s s . i n t e r n a l r e s e t s i g n a l w a t c h d o g t i m e r d e t e c t i o n a p p r o x . 1 m s ( f ( x i n ) = 8 m h z ) f ( x i n )
rev.1.00 sep 06, 2006 page 51 of 88 rej03b0181-0100 3826 group (one time prom version) t out / output function the system clock or timer 2 divided by 2 (t out output) can be output from port p4 3 by setting the t out / output enable bit of the timer 123 mode register and the t out / output control register. set the p4 3 / /t out pin to output mode (set ??to bit 3 of port p4 direction register) when outputting t out / . fig. 55 structure of t out / output-related registers t o u t / o u t p u t c o n t r o l b i t 0 : s y s t e m c l o c k o u t p u t 1 : t o u t o u t p u t n o t u s e d ( 0 a t r e a d i n g ) t out / output contro l reg i ster (ckout : ad dress 002a 16 ) b 7 b 0 ti mer 123 mo d e reg i ster (t123m : a ddress 0029 16 ) t out output act i ve e d ge sw i tc h bi t 0 : start at h output 1 : start at l output t out / output enable bit 0 : t out / output disabled 1 : t out / output enabled time r 2 wr ite co ntrol bit 0 : write data in latch and timer 1 : write data in latch only timer 2 count source selection bit 0 : timer 1 output 1 : f(x in )/16 (or f(x cin )/16 in low-speed mode) timer 3 count source selection bit 0 : timer 1 output 1 : f(x in )/16 (or f(x cin )/16 in low-speed mode) timer 1 count source selection bit 0 : f(x in )/16 (or f(x cin )/16 in low-speed mode) 1 : f(x cin ) not used (?? at reading) b 7 b 0
rev.1.00 sep 06, 2006 page 52 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 56 example of reset circuit reset circuit when the power source voltage is within limits, and main clock x in -x out is stable, or a stabilized clock is input to the x in pin, if the reset pin is held at an ??level for 2 s or more, the micro- computer is in an internal reset state. then the reset pin is returned to an ??level, reset is released after approximate 8200 cycles of f(x in ), the program in address fffd 16 (high-order byte) fig. 57 reset sequence and address fffc 16 (low-order byte). make sure that the reset in- put voltage is less than 0.2 v cc (min.) for the power source voltage of v cc (min.). *v cc (min.) = minimum value of power supply voltage limits applied to v cc pin v c c r e s e t v c c r e s e t power source voltage detection circuit v c c r e s e t p o w e r o n 0 . 2 v c c l e v e l o s c i l l a t i o n s t a b i l i z e d 2 s x i n 0 v 0 v 0v ( n o t e ) n o t e : r e s e t r e l e a s e v o l t a g e v c c = v c c ( m i n . ) a d l f f f c fffd a d h , u n d e f i n e d x i n : a p p r o x . 8 2 0 0 c y c l e s n o t e : t h e f r e q u e n c y o f s y s t e m c l o c k i s f ( x i n ) d i v i d e d b y 8 . r e s e t a d d r e s s f r o m v e c t o r t a b l e reset i n t e r n a l r e s e t a d d r e s s d ata sync s y s t e m c l o c k x i n a d h a d l u n d e f i n e dun defined u n d e f i n e d
rev.1.00 sep 06, 2006 page 53 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 58 internal state of microcomputer immediately after reset note: the contents of all other registers and ram are undefined after reset, so they must be initialized by software. ? : undefined register contents address 0001 16 0003 16 0005 16 0007 16 0009 16 000b 16 000d 16 000f 16 0014 16 0016 16 0017 16 0019 16 001a 16 001b 16 001d 16 0020 16 0021 16 0022 16 0023 16 0024 16 0025 16 0026 16 0027 16 0028 16 0029 16 002a 16 002b 16 0032 16 0033 16 0034 16 0036 16 0037 16 0038 16 0039 16 003a 16 003b 16 003c 16 003d 16 003e 16 003f 16 (ps) (pc h ) (pc l ) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) (22) (23) (24) (25) (26) (27) (28) (33) (34) (1) (2) (3) (4) (5) (6) (7) (8) (9) (35) (36) (37) (38) (39) (40) (41) (42) (43) timer y low-order register port p5 direction register port p6 direction register pull register b timer y high-order register serial i/o1 control register uart control register timer x high-order register timer x low-order register timer x mode register timer y mode register timer 123 mode register serial i/o1 status register port p7 direction register ad control register segment output enable register lcd mode register pull register a interrupt edge selection register cpu mode register interrupt request register 1 interrupt request register 2 interrupt control register 1 interrupt control register 2 processor status register program counter port p4 direction register port p2 direction register port p3 output control register port p1 direction register port p0 direction register timer 1 register timer 2 register timer 3 register ad conversion low-order register 111000 0 0 100000 0 0 0011 11 1 1 1 0 0 1 0 0 0 0 ? 1 ? ? ?? ?? 00 16 00 16 00 16 00 16 00 16 00 16 ff 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 ff 16 ff 16 00 16 00 16 00 16 3f 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 00 16 ff 16 ff 16 contents of address fffd 16 contents of address fffc 16 da control register watchdog timer control register da1 conversion register da2 conversion register serial i/o2 control register t out / output control register pwm control register watchdog timer (high-order) (48) watchdog timer (low-order) ff 16 01 16 00 16 0 0 0 1 0 0 0 0 3f 16 ff 16 (49) 0015 16 key input control register 00 16 ?? 0000 1 0 002e 16 002f 16 (29) (30 ) 06 16 00 16 ctcss timer (low-order) ctcss timer (high-order) 0030 16 0031 16 (31) (32) 06 16 06 16 dtmf high group timer dtmf low group timer (44) (45) (46) (47) register contents address
rev.1.00 sep 06, 2006 page 54 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 59 oscillator circuit fig. 60 external clock input circuit clock generating circuit the 3826 group has two built-in oscillation circuits: main clock x in -x out oscillation circuit and sub-clock x cin -x cout oscillation circuit. an oscillation circuit can be formed by connecting an oscil- lator between x in and x out (x cin and x cout ). use the circuit constants in accordance with the oscillator manufacturers recom- mended values. a feed-back resistor exists on-chip (an external feed-back resistor may be needed depending on conditions.). however, an external feed-back resistor is needed between x cin and x cout since a resistor does not exist between them. to supply a clock signal externally, input it to the x in pin and make the x out pin open. the sub-clock oscillation circuit cannot directly input clocks that are externally generated. accordingly, be sure to cause an external oscillator to oscillate. immediately after poweron, only the x in oscillation circuit starts oscillating, and x cin and x cout pins go to high-impedance state. frequency control (1) middle-speed mode the clock input to the x in pin is divided by 8 and it is used as the system clock . after reset, this mode is selected. (2) high-speed mode the clock input to the x in pin is divided by 2 and it is used as the system clock . (3) low-speed mode the clock input to the x cin pin is divided by 2 and it is used as the system clock . a low-power consumption operation can be realized by stopping the main clock in this mode. to stop the main clock, set the main clock stop bit of the cpu mode register to ?? when the main clock is restarted, after setting the main clock stop bit to ?? set enough time for oscillation to stabilize by pro- gram. note: if you switch the mode between middle/high-speed and low- speed, stabilize both x in and x cin oscillations. the suffi- cient time is required for the sub clock to stabilize, espe- cially immediately after poweron and at returning from stop mode. when switching the mode between middle/high- speed and low-speed, set the frequency in the condition that f(x in ) > 3?(x cin ). oscillation control (1) stop mode if the stp instruction is executed, the system clock stops at an ??level, and main and sub clock oscillators stop. in this time, values set previously to timer 1 latch and timer 2 latch are loaded automatically to timer 1 and timer 2. before the stp instruction, set the values to generate the wait time required for oscillation stabilization to timer 1 latch and timer 2 latch (low-order 8 bits are set to timer 1, high-order 8 bits are set to timer 2). either f(x in ) or f(x cin ) divided by 16 is input to timer 1 as count source, and the output of timer 1 is connected to timer 2. the bits of the timer 123 mode register except bit 4 are set to ?? set the timer 1 and timer 2 interrupt enable bits to ??before ex- ecuting the stp instruction. oscillation restarts at reset or when an external interrupt is re- ceived, but the system clock is not supplied to the cpu until timer 2 underflows. this allows time for the clock circuit oscillation to stabilize when a ceramic resonator is used. (2) wait mode if the wit instruction is executed, only the system clock stops at an ??state. the states of main clock and sub clock are the same as the state before the executing the wit instruction, and oscilla- tion does not stop. since supply of internal clock is started im- mediately after the interrupt is received, the instruction can be ex- ecuted immediately. x cin c in c out c cin c cout rf rd x cout x in x out notes : insert a damping resistor if required. the resistance will vary depending on the oscillator and the oscillation drive capacity setting. use the value recommended by the maker of the oscillator. also, if the oscillator manufacturer's data sheet specifies that a feedback resistor be added external to the chip though a feedback resistor exists on-chip, insert a feedback resistor between x in and x out following the instruction. rd (note) x i n x o u t e x t e r n a l o s c i l l a t i o n c i r c u i t o p e n v c c v ss c c i n c c o u t r f r d x c i n x c o u t
rev.1.00 sep 06, 2006 page 55 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 61 clock generating circuit block diagram wit instruction stp instruction system clock s r q stp instruction s r q main clock stop bit s r q timer 2 timer 1 1/2 1/4 x in x out x cout x cin interrupt request reset timer 1 count source selection bit timer 2 count source selection bit low-speed mode middle-/high-speed mode system clock selection bit ( note 1 ) middle-speed mode high-speed mode or low-speed mode notes 1: when using the sub clock for the system clock , set the x c switch bit to ?? main clock division ratio selection bit ? ? ? ? interrupt disable flag i 1/2 x c switch bit ( note 1 ) ? ? (note 2) although a feed-back resistor exists on-chip, an external feed-back resistor may be needed depending on conditions. 2:
rev.1.00 sep 06, 2006 page 56 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 62 state transitions of system clock n o t e s 1: s w i tc h t h e mo d e a ccor di ng to t h e arrows s h own b etween t h e mo d e bl oc k s. (d o not sw i tc h b etw een t h e mo d e di rect l y w i t h out an arrow. ) 2: the all mo des can be switched to the stop mode or the wait mode and returned to the source mode when the stop mode or the wait mode is ended. 3: when t he stop mode is ended, a delay time can be set by timer 1 and timer 2. 4: time r an d lcd operate in the wait mode. 5: wait until oscillation stabilizes after oscillating the main clock before the switching from the low-speed mode to middle-/hig h-speed mode. 6: the ex ample assumes that 8 mhz is being applied to the x in pin and 32 khz to the x cin pin. in di cates the system clock. cm 4 : x c sw i tc h bi t 0: o sc illation stop 1: x cin , x cout cm 5 : main clock (x in ? out ) stop bit 0: o sc illating 1: stopped cm 6 : main clo ck division ratio selection bit 0: f(x in )/2 (high- s peed mode) 1: f(x in )/8 (middle-speed mode) cm 7 : s ystem clock selection bit 0: x in ? out selected (midd le-/hi gh-speed mode) 1: x cin ? cout selected (low-s peed mode ) c p u m o d e r e g i s t e r ( c p u m : a d d r e s s 0 0 3 b 1 6 ) b 7 b 4 r e s e t c m 6 ? 1 c m 6 0 1 c m 5 0 1 c m 5 0 1 0 c m 5 c m 6 0 1 0 1 c m 5 c m 6 1 1 0 c m 6 ? ? c m 7 0 1 c m 7 0 1 c m 7 = 0 ( 8 m h z s e l e c t e d ) c m 6 = 1 ( m i d d l e - s p e e d ) c m 5 = 0 ( 8 m h z o s c i l l a t i n g ) c m 4 = 0 ( 3 2 k h z s t o p p e d ) m i d d l e - s p e e d m o d e ( f ( ) = 1 m h z ) c m 6 0 1 c m 4 0 1 c m 4 0 1 cm 7 = 0 ( 8 mh z se l ecte d) cm 6 = 0 (hig h-sp eed) cm 5 = 0 (8 mhz oscillating) cm 4 = 0 (3 2 kh z stop ped) h i g h - s p e e d m o d e ( f ( ) = 4 m h z ) cm 7 = 0 ( 8 mh z se l ecte d) cm 6 = 1 (middl e-sp eed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) m i d d l e - s p e e d m o d e ( f ( ) = 1 m h z ) cm 7 = 0 ( 8 mh z se l ecte d) cm 6 = 0 (hig h-sp eed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) h i g h - s p e e d m o d e ( f ( ) = 4 m h z ) c m 4 c m 6 0 1 0 1 c m 4 c m 6 1 1 0 0 cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 1 (middl e-sp eed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) l ow-spee d mo d e (f( ) = 16 khz) cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 0 (hig h-sp eed) cm 5 = 0 (8 mhz oscillating) cm 4 = 1 (32 khz oscillating) l o w- s p e e d m o d e ( f ( ) = 1 6 k h z ) cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 1 (middl e-sp eed) cm 5 = 1 (8 mhz stop p ed) cm 4 = 1 (32 khz oscillating) l o w- s p e e d m o d e ( f ( ) = 1 6 k h z ) cm 7 = 1 ( 32 kh z se l ecte d) cm 6 = 0 (hig h-sp eed) cm 5 = 1 (8 mhz stop p ed) cm 4 = 1 (32 khz oscillating) l o w- s p e e d m o d e ( f ( ) = 1 6 k h z )
rev.1.00 sep 06, 2006 page 57 of 88 rej03b0181-0100 3826 group (one time prom version) notes on programming processor status register the contents of the processor status register (ps) after a reset are undefined, except for the interrupt disable flag (i) which is ?? af- ter a reset, initialize flags (t flag, d flag, etc.) which affect program execution. interrupt when the contents of an interrupt request bits are changed by the program, execute a bbc or bbs instruction after at least one in- struction. this is for preventing executing a bbc or bbs instruction to the contents before change. decimal calculations to calculate in decimal notation, set the decimal mode flag (d) to ?? then execute an adc or sbc instruction. after executing an adc or sbc instruction, execute at least one instruction before executing a sec, clc, or cld instruction. in decimal mode, the values of the negative (n), overflow (v), and zero (z) flags are invalid. multiplication and division instructions the index mode (t) and the decimal mode (d) flags do not affect the mul and div instruction. the execution of these instructions does not change the contents of the processor status register. ports use instructions such as ldm and sta, etc., to set the port direc- tion registers. the contents of the port direction registers cannot be read. the following cannot be used: lda instruction the memory operation instruction when the t flag is ? the bit-test instruction (bbc or bbs, etc.) the read-modify-write instruction (calculation instruction such as ror etc., bit manipulation instruction such as clb or seb etc.) the addressing mode which uses the value of a direction regis- ter as an index serial i/o in clock synchronous serial i/o, if the receive side is using an ex- ternal clock and it is to output the s rdy signal, set the transmit en- able bit, the receive enable bit, and the s rdy output enable bit to ?? the txd pin of serial i/o1 retains the level then after transmission is completed. in serial i/o2 selecting an internal clock, the s out2 pin goes to high impedance state after transmission is completed. in serial i/o2 selecting an external clock, the s out2 pin retains the level then after transmission is completed. a/d converter the input to the comparator is combined by internal capacitors. therefore, since conversion accuracy may be worse by losing of an electric charge when the conversion speed is not enough, make sure that f(x in ) is at least 500 khz during an a/d conver- sion. the normal operation of a/d conversion cannot be guaranteed when performing the next operation: ?hen writing to cpu mode register during a/d conversion op- eration ?hen writing to ad control register during a/d conversion op- eration ?hen executing stp instruction or wit instruction during a/d conversion operation instruction execution time the instruction execution time is obtained by multiplying the fre- quency of the system clock by the number of cycles needed to execute an instruction. the number of cycles required to execute an instruction is shown in the list of machine instructions. the frequency of the system clock depends on the main clock division ratio selection bit and the system clock selection bit.
rev.1.00 sep 06, 2006 page 58 of 88 rej03b0181-0100 3826 group (one time prom version) notes on use countermeasures against noise (1) shortest wiring length ? wiring for reset pin make the length of wiring which is connected to the reset pin as short as possible. especially, connect a capacitor across the reset pin and the v ss pin with the shortest possible wiring (within 20 mm). reason the width of a pulse input into the reset pin is determined by the timing necessary conditions. if noise having a shorter pulse width than the standard is input to the reset pin, the reset is released before the internal state of the microcomputer is com- pletely initialized. this may cause a program runaway. fig. 64 wiring for clock i/o pins (2) connection of bypass capacitor across v ss line and v cc line in order to stabilize the system operation and avoid the latch-up, connect an approximately 0.1 f bypass capacitor across the v ss line and the v cc line as follows: ?connect a bypass capacitor across the v ss pin and the v cc pin at equal length. ?connect a bypass capacitor across the v ss pin and the v cc pin with the shortest possible wiring. ?use lines with a larger diameter than other signal lines for v ss line and v cc line. ?connect the power source wiring via a bypass capacitor to the v ss pin and the v cc pin. fig. 63 wiring for the reset pin ? wiring for clock input/output pins ?make the length of wiring which is connected to clock i/o pins as short as possible. ?make the length of wiring (within 20 mm) across the grounding lead of a capacitor which is connected to an oscillator and the v ss pin of a microcomputer as short as possible. ?separate the v ss pattern only for oscillation from other v ss patterns. reason if noise enters clock i/o pins, clock waveforms may be de- formed. this may cause a program failure or program runaway. also, if a potential difference is caused by the noise between the v ss level of a microcomputer and the v ss level of an oscil- lator, the correct clock will not be input in the microcomputer. fig. 65 bypass capacitor across the v ss line and the v cc line reset reset circuit noise v ss v ss reset circuit v ss reset v ss n.g. o.k. noise x in x out v ss x in x out v ss n.g. o.k. v ss v cc       v ss v cc          n.g. o.k.
rev.1.00 sep 06, 2006 page 59 of 88 rej03b0181-0100 3826 group (one time prom version) (3) oscillator concerns in order to obtain the stabilized operation clock on the user system and its condition, contact the oscillator manufacturer and select the oscillator and oscillation circuit constants. be careful espe- cially when range of voltage or/and temperature is wide. also, take care to prevent an oscillator that generates clocks for a microcomputer operation from being affected by other signals. ? keeping oscillator away from large current signal lines install a microcomputer (and especially an oscillator) as far as possible from signal lines where a current larger than the toler- ance of current value flows. reason in the system using a microcomputer, there are signal lines for controlling motors, leds, and thermal heads or others. when a large current flows through those signal lines, strong noise oc- curs because of mutual inductance. ? installing oscillator away from signal lines where potential levels change frequently install an oscillator and a connecting pattern of an oscillator away from signal lines where potential levels change frequently. also, do not cross such signal lines over the clock lines or the signal lines which are sensitive to noise. reason signal lines where potential levels change frequently (such as the cntr pin signal line) may affect other lines at signal rising edge or falling edge. if such lines cross over a clock line, clock waveforms may be deformed, which causes a microcomputer failure or a program runaway. ? keeping oscillator away from large current signal lines ? installing oscillator away from signal lines where potential levels change frequently fig. 66 wiring for a large current signal line/ wi ring of signal lines where potential levels change frequently x i n x o u t v s s m i c r o c o m p u t e r mutual inductance l a r g e c u r r e n t g n d m x i n x o u t v s s c n t r d o n o t c r o s s n.g. fig. 67 wiring for the v pp pin of one time prom (4) analog input the analog input pin is connected to the capacitor of a compara- tor. accordingly, sufficient accuracy may not be obtained by the charge/discharge current at the time of a/d conversion when the analog signal source of high-impedance is connected to an analog input pin. in order to obtain the a/d conversion result stabilized more, please lower the impedance of an analog signal source, or add the smoothing capacitor to an analog input pin. (5) difference of memory type and size when mask rom and prom version and memory size differ in one group, actual values such as an electrical characteristics, a-d conversion accuracy, and the amount of proof of noise incorrect operation may differ from the ideal values. when these products are used switching, perform system evalua- tion for each product of every after confirming product specification. (6) wiring to v pp pin of one time prom version and eprom version connect an approximately 5 k ? resistor to the v pp pin the shortest possible in series. note: even when a circuit which included an approximately 5 k ? resistor is used in the mask rom version, the microcom- puter operates correctly. reason the v pp pin of the prom version is the power source input pin for the built-in prom. when programming in the built-in prom, the impedance of the v pp pin is low to allow the electric current for writing flow into the built-in prom. because of this, noise can en- ter easily. if noise enters the v pp pin, abnormal instruction codes or data are read from the built-in prom, which may cause a pro- gram runaway. p7 0 /v pp v ss a b o u t 5 k ? s o u r c e s i g n a l
rev.1.00 sep 06, 2006 page 60 of 88 rej03b0181-0100 3826 group (one time prom version) notes on use power source voltage when the power source voltage value of a microcomputer is less than the value which is indicated as the recommended operating conditions, the microcomputer does not operate normally and may perform unstable operation. in a system where the power source voltage drops slowly when the power source voltage drops or the power supply is turned off, reset a microcomputer when the power source voltage is less than the recommended operating conditions and design a system not to cause errors to the system by this unstable operation. name of programming adapter pca4738f-100a pca4738g-100a pca4738l-100a package prqp0100jb-a plqp0100kb-a 100d0 the prom of the blank one time prom version is not tested or screened in the assembly process and following processes. to en- sure proper operation after programming, the procedure shown in figure 68 is recommended to verify programming. rom programming method the built-in prom of the blank one time prom version can be read or programmed with a general-purpose prom programmer using a special programming adapter. set the address of prom pro-grammer in the user rom area. t able 14 special programming adapter fig. 68 state transitions of system clock p r o g r a m m i n g w i t h p r o m p r o g r a m m e r screen i ng (caution) (150 c for 40 hours) verifi cation with prom programmer functional check in target device t h e s c r e e n i n g t e m p e r a t u r e i s f a r h i g h e r t h a n t h e s t o r a g e t e m p e r a t u r e . n e v e r e x p o s e t o 1 5 0 c e x c e e d i n g 1 0 0 h o u r s . c aution :
rev.1.00 sep 06, 2006 page 61 of 88 rej03b0181-0100 3826 group (one time prom version) v v ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage p0 0 ?0 7 , p1 0 ?1 7 , p4 0 , p4 3 , p4 5 , p4 7 , p5 0 ?5 3 , p5 6 , p6 1 , p6 4 ?6 7 , p7 1 ?7 7 ??input voltage p2 0 ?2 7 , p4 1 , p4 2 , p4 4 , p4 6 , p5 4 , p5 5 , p5 7 , p6 0 , p6 2 , p6 3 , p7 0 reset x in ??input voltage ??input voltage v ih v ih v ih v ih v il v il v il v il ??input voltage ??input voltage 0.7 v cc 0.8 v cc 0.8 v cc 0.8 v cc 0 0 0 0 v cc v cc v cc v cc 0.3 v cc 0.2 v cc 0.2 v cc 0.2 v cc v v v v v v electrical characteristics absolute maximum ratings t able 15 absolute maximum ratings recommended operating conditions t able 16 recommended operating conditions (1) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) power source voltage a/d, d/a conversion reference voltage analog power source voltage analog input voltage an 0 ?n 7 5.5 5.5 5.5 v cc v cc v cc v ss v ref av ss v ia symbol parameter limits min. v v v v v unit 4.0 2.5 2.5 2.0 av ss 5.0 5.0 5.0 0 0 t yp. max. power source voltage v o v o v o pd t opr t stg ?.3 to 7.0 v power source voltage input voltage p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 input voltage p7 0 ?7 7 input voltage v l1 input voltage v l2 input voltage v l3 input voltage c 1 , c 2 input voltage reset, x in output voltage c 1 , c 2 v cc v i symbol parameter conditions ratings unit all voltages are based on v ss . when an input voltage is measured, output transistors are cut off. v i v i v i v i v i v i v o v o v o output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 1 ?7 7 output voltage v l3 output voltage v l2 , seg 0 ?eg 17 output voltage x out power dissipation operating temperature storage temperature at output port at segment output ?.3 to v cc +0.3 ?.3 to v cc +0.3 ?.3 to v l2 v l1 to v l3 v l2 to 7.0 ?.3 to 7.0 ?.3 to v cc +0.3 ?.3 to 7.0 ?.3 to v cc ?.3 to v l3 ?.3 to v cc +0.3 ?.3 to 7.0 ?.3 to v l3 ?.3 to v cc +0.3 300 ?0 to 85 ?0 to 125 v v v v v v v v v v v v v v mw ? ? high-speed mode f(x in ) = 8 mhz middle-speed mode f(x in ) = 8 mhz low-speed mode ta = 25?
rev.1.00 sep 06, 2006 page 62 of 88 rej03b0181-0100 3826 group (one time prom version) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p3 0 ?3 7 (note 1) p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 1) p4 0 , p7 1 ?7 7 (note 1) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 2) ??peak output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 2) p4 0 , p7 1 ?7 7 (note 2) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 (note 3) ??average output current p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 (note 3) p4 0 , p7 1 ?7 7 (note 3) ?0 ?0 20 20 80 ?0 ?0 10 10 40 ?.0 t able 17 recommended operating conditions (2) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) notes1: the total output current is the sum of all the currents flowing through all the applicable ports. the total average current is an average value measured over 100 ms. the total peak current is the peak value of all the currents. 2: the peak output current is the peak current flowing in each port. 3: the average output current is an average value measured over 100 ms. ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total peak output current ??total average output current ??total average output current ??total average output current ??total average output current ??total average output current i oh(peak) i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) i ol(avg) i oh(peak) symbol parameter limits min. ma ma ma ma ma ma ma ma ma ma ma unit t yp. max. ??peak output current ??peak output current ??peak output current ??average output current ??average output current ??average output current ??average output current i oh(peak) i ol(peak) i ol(peak) i ol(peak) i oh(avg) i oh(avg) i ol(avg) i ol(avg) ?.0 5.0 10 20 ?.5 ?.5 2.5 5.0 ma ma ma ma ma ma ma ma t able 18 recommended operating conditions (3) (v cc = 2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) notes1: when the oscillation frequency has a duty cycle of 50%. 2: when using the microcomputer in low-speed mode, make sure that the sub-clock input oscillation frequency on condition that f(x cin ) < f(x in )/3. input frequency for timers x and y (duty cycle 50%) f(cntr 0 ) f(cntr 1 ) symbol parameter limits min. mhz unit t yp. max. (4.0 v v cc 5.5 v) 32.768 4.0 main clock input oscillation frequency (note 1) sub-clock input oscillation frequency (notes 1, 2) f(x in ) f(x cin ) (v cc 4.0 v) high-speed mode (4.0 v v cc 5.5 v) high-speed mode (2.5 v v cc 4.0 v) middle-speed mode (2 ? v cc ) ? 8.0 (4 ? v cc ) ? 8.0 50 mhz mhz mhz mhz khz t est conditions i ol(avg) 10 ma
rev.1.00 sep 06, 2006 page 63 of 88 rej03b0181-0100 3826 group (one time prom version) v cc = 5.0 v, v o = v cc , pullup on output transistors ?ff v cc = 2.5 v,v o = v cc , pullup on output transistors ?ff i ol = 10 ma i ol = 3.0 ma i ol = 2.5 ma v cc = 2.5 v i ol = 5 ma i ol = 1.5 ma i ol = 1.25 ma v cc = 2.5 v v ol i oh = ? ma i oh = ?.25 ma v cc = 2.5 v i oh = ? ma i oh = ?.5 ma i oh = ?.25 ma v cc = 2.5 v v v cc ?.0 ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 symbol parameter limits min. unit 0.5 t yp. max. t est conditions v oh 2.0 0.5 electrical characteristics t able 19 electrical characteristics (1) (v cc =4.0 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) i ol = 10 ma i ol = 5 ma v cc = 2.5 v v i = v cc v i = v cc v i = v cc v i = v ss pull-ups ?ff v cc = 5 v, v i = v ss pull-ups ?n v cc = 2.5 v, v i = v ss pull-ups ?n v i = v ss v i = v ss ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??output voltage p0 0 ?0 7 , p1 0 ?1 5 , p3 0 ?3 7 ??output voltage p1 6 , p1 7 , p2 0 ?2 7 , p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??output voltage p4 0 , p7 1 ?7 7 hysteresis int 0 ?nt 2 , adt, cntr 0, cntr 1, p2 0 ?2 7 hysteresis s clk , r x d, s in2 hysteresis reset ??input current p0 0 ?0 7 , p1 0 ?1 7 , p2 0 ?2 7 , p4 0 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 , p7 0 ?7 7 ??input current reset ??input current x in ??input current p0 0 ?0 7 ,p1 0 ?1 7 , p2 0 ?2 7 ,p4 1 ?4 7 , p5 0 ?5 7 , p6 0 ?6 7 ??input current p4 0 , p7 0 ?7 7 ??input current reset ??input current x in output load current p3 0 ?3 7 v oh v ol v ol v t+ ?v t v t+ ?v t v t+ ?v t i ih i ih i ih i il i il i il i load v cc ?.0 v cc ?.5 ?0.0 ?.0 0.5 0.5 4.0 ?20.0 ?5.0 ?.0 2.0 0.5 0.5 5.0 5.0 ?.0 ?40.0 ?5.0 ?.0 ?.0 ?40.0 ?5.0 v v v v v v v v v v a a a a a a a a i il v cc ?.8 v cc ?.8 v v v 0.8 v 0.8 0.3 v a a a v o = v cc , pullup off output transistors ?ff v o = v ss , pullup off output transistors ?ff output leak current p3 0 ?3 7 i leak 5.0 ?.0 a a ?20.0 ?5.0 ?0.0 ?.0
rev.1.00 sep 06, 2006 page 64 of 88 rej03b0181-0100 3826 group (one time prom version) t able 20 electrical characteristics (2) (v cc =2.5 to 5.5 v, ta = ?0 to 85?, unless otherwise noted) v 5.5 high-speed mode, v cc = 5 v f(x in ) = 8 mhz f(x cin ) = 32.768 khz output transistors ?ff a/d converter in operating high-speed mode, v cc = 5 v f(x in ) = 8 mhz (in wit state) f(x cin ) = 32.768 khz output transistors ?ff a/d converter stop low-speed mode, v cc = 5 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 5 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff low-speed mode, v cc = 3 v, ta 55? f(x in ) = stopped f(x cin ) = 32.768 khz output transistors ?ff low-speed mode, v cc = 3 v, ta = 25? f(x in ) = stopped f(x cin ) = 32.768 khz (in wit state) output transistors ?ff all oscillation stopped (in stp state) output transistors ?ff symbol parameter limits min. unit t yp. max. ta = 25 ? ta = 85 ? t est conditions i cc power source current 6.4 v ram ram retention voltage at clock stop mode 2.0 when using voltage multiplier v l1 = 1.8 v v l1 i l1 power source voltage power source current (v l1 ) (note) note: when the voltage multiplier control bit of the lcd mode register (bit 4 at address 0039 16 ) is ?? 1.3 1.6 35 20 15 4.5 0.1 1.8 4.0 3.2 70 40 22 9.0 1.0 10 2.3 ma a a a a a v ma 13 a
rev.1.00 sep 06, 2006 page 65 of 88 rej03b0181-0100 3826 group (one time prom version) a/d converter characteristics t able 21 a/d converter characteristics (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 8-bit a/d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? symbol parameter limits min. unit t yp. max. t est conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 2.7 to 5.5 v bits lsb 35 150 s f(x in ) = 8 mhz conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a d/a converter characteristics t able 23 d/a converter characteristics (v cc = 2.7 to 5.5 v, v cc = v ref , v ss = av ss = 0 v, ta = ?0 to 85?, in middle/high-speed mode unless otherwise noted) symbol parameter limits min. unit t yp. max. t est conditions resolution v cc = v ref = 5 v v cc = v ref = 2.7 v 1 bits % % s k ? ma 3 2.5 8 1.0 2.0 note: using one d/a converter, with the value in the d/a conversion register of the other d/a converter being ?0 16 ? and excluding currents flowing through the a/d resistance ladder. (note) setting time output resistor t su r o 4 3.2 12 50 absolute accuracy analog port input current i ia i vref reference power source input current a v ref = 5 v t able 22 a/d converter characteristics (v cc = 2.7 to 5.5 v, v ss = av ss = 0 v, ta = ?0 to 85?, f(x in ) = 500 khz to 8 mhz, in middle/high-speed mode unless otherwise noted) 10-bit a/d mode (when conversion mode selection bit (bit 0 of address 0014 16 ) is ?? symbol parameter limits min. unit t yp. max. t est conditions resolution absolute accuracy (excluding quantization error) v cc = v ref = 2.7 to 5.5 v bits lsb 35 150 10 ? conversion time ladder resistor reference power source input current t conv r ladder i vref k ? a 12 50 analog port input current i ia a 100 200 5.0 v ref = 5 v note: when the internal trigger is used in the middle-speed mode, the max. value of t conv is 14 s. note: when the internal trigger is used in the middle-speed mode, the max. value of t conv is 17 s. 100 200 5.0 8 ? 12.5 (note) s f(x in ) = 8 mhz 15.5 (note)
rev.1.00 sep 06, 2006 page 66 of 88 rej03b0181-0100 3826 group (one time prom version) timing requirements t able 24 timing requirements 1 (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) 2 125 45 40 250 105 105 80 80 800 370 370 220 100 1000 400 400 200 200 note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl (s clk2 ) t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns unit t yp. max. t able 25 timing requirements 2 (v cc = 2.5 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) 2 125 45 40 500/(v cc -2) 250/(v cc -2)?0 250/(v cc -2)?0 230 230 2000 950 reset input ??pulse width main clock input cycle time (x in input) main clock input ??pulse width main clock input ??pulse width cntr 0 , cntr 1 input cycle time cntr 0 , cntr 1 input ??pulse width cntr 0 , cntr 1 input ??pulse width int 0 to int 2 input ??pulse width int 0 to int 2 input ??pulse width serial i/o1 clock input cycle time (note) serial i/o1 clock input ??pulse width (note) t w(reset) t c(x in ) t wh(x in ) t wl(x in ) t c(cntr) t wh(cntr) t wl(cntr) t wh(int) t wl(int) t c(s clk1 ) t wh(s clk1 ) symbol parameter limits min. s ns ns ns ns ns ns ns ns ns ns unit t yp. max. note: when bit 6 of address 001a 16 is ?? divide this value by four when bit 6 of address 001a 16 is ?? t su(s in2 ? clk2 ) t h(s clk2 ? in2 ) t wl(s clk1 ) t su(r x d? clk1 ) t h(s clk1 ? x d) t c(s clk2 ) t wh(s clk2 ) t wl(s clk2 ) serial i/o1 clock input ??pulse width (note) serial i/o1 input set up time serial i/o1 input hold time serial i/o2 clock input cycle time (note) serial i/o2 clock input ??pulse width (note) serial i/o2 clock input ??pulse width (note) serial i/o2 input set up time serial i/o2 input hold time 950 400 200 2000 950 950 400 300 ns ns ns ns ns ns ns ns
rev.1.00 sep 06, 2006 page 67 of 88 rej03b0181-0100 3826 group (one time prom version) switching characteristics t able 26 switching characteristics 1 (v cc = 4.0 to 5.5 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 140 30 30 0.2 ? t c (s clk2 ) 40 30 30 symbol parameter limits min. ns ns ns ns ns ns ns ns ns ns ns ns ns unit t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 10 10 t yp. max. t wh(s clk1 ) t wl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) t able 27 switching characteristics 2 (v cc = 2.5 to 4.0 v, v ss = 0 v, ta = ?0 to 85?, unless otherwise noted) ns ns ns ns ns ns ns ns ns ns ns ns ns unit notes1: when the p4 5 /t x d p-channel output disable bit of the uart control register (bit 4 of address 001b 16 ) is ?? 2: x out and x cout pins are excluded. serial i/o1 clock output ??pulse width serial i/o1 clock output ??pulse width serial i/o1 output delay time (note 1) serial i/o1 output valid time (note 1) serial i/o1 clock output rising time serial i/o1 clock output falling time serial i/o2 clock output ??pulse width serial i/o2 clock output ??pulse width serial i/o2 output delay time serial i/o2 output valid time serial i/o2 clock output falling time cmos output rising time (note 2) cmos output falling time (note 2) 350 50 50 0.2 ? t c (s clk2 ) 50 50 50 symbol parameter limits min. t c (s clk1 )/2?0 t c (s clk1 )/2?0 ?0 20 20 max. t wh(s clk1 ) twl(s clk1 ) t d(s clk1 ? x d) t v(s clk1 ? x d) t r(s clk1 ) t f(s clk1 ) t wh(s clk2 ) t wl(s clk2 ) t d(s clk2 ? out2 ) t v(s clk2 ? out2 ) t f(s clk2 ) t r(cmos) t f(cmos) t yp. t c (s clk2 )/2?60 t c (s clk2 )/2?60 0 t c (s clk2 )/2?40 t c (s clk2 )/2?40 0 fig. 69 circuit for measuring output switching characteristics m easurement output p i n 1 0 0 p f c m o s o u t p u t n o t e : w h e n p 7 1 p 7 7 , p 4 0 a n d b i t 4 o f t h e u a r t c o n t r o l r e g i s t e r ( a d d r e s s 0 0 1 b 1 6 ) i s 1 ( n - c h a n n e l o p e n - d r a i n o u t p u t m o d e ) . n - c h a n n e l o p e n - d r a i n o u t p u t ( n o t e ) 1 k ? 1 0 0 p f m easurement output p i n
rev.1.00 sep 06, 2006 page 68 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 70 timing diagram i n t 0 i n t 2 cntr 0 , cntr 1 0.2v cc t wl(int) 0 . 8 v c c t w h ( i n t ) 0 . 2 v c c 0.2v cc 0 . 8 v c c 0.8v cc 0.2v cc t wl(x in ) 0 . 8 v c c t w h ( x i n ) t c(x in ) x i n 0 . 2 v c c 0 . 8 v c c t w(re set) r e s e t t f t r 0.2v cc t w l ( c n t r ) 0 . 8 v c c t w h ( c n t r ) t c ( c n t r ) t d(s clk1 -t x d) ,t d(s clk2- s out2 ) t v ( s c l k 1 - t x d ) , t v ( s c l k 2 - s o u t 2 ) t c(s clk1 ), t c(s clk2 ) t w l ( s c l k 1 ) , t w l ( s c l k 2 ) t w h ( s c l k 1 ) , t w h ( s c l k 2 ) t h ( s c l k 1 - r x d ) , t h ( s c l k 2 - s i n 2 ) t s u ( r x d - s c l k 1 ) , t s u ( s i n 2 - s c l k 2 ) t x d s o u t 2 r x d s i n 2 s c l k 1 s c l k 2
rev.1.00 sep 06, 2006 page 69 of 88 rej03b0181-0100 3826 group (one time prom version) package outline terminal cross section b 1 c 1 b p c 2. 1. dimensions " * 1" and " * 2" do not include mold flash. note) dimension " * 3" does not include trim offset. y index mark x 125 26 50 51 75 76 100 f * 1 *3 * 2 z e z d e d h d h e b p detail f l 1 a 2 a 1 l a c l 1 z e z d c 1 b 1 b p a 1 h e h d y 0.08 e 0.5 c 0 8 x l 0.35 0.5 0.65 0.05 0.1 0.15 a 1.7 15.8 16.0 16.2 15.8 16.0 16.2 a 2 1.4 e 13.9 14.0 14.1 d 13.9 14.0 14.1 reference symbol dimension in millimeters min nom max 0.15 0.20 0.25 0.09 0.145 0.20 0.08 1.0 1.0 0.18 0.125 1.0 previous code jeita package code renesas code plqp0100kb-a 100p6q-a / fp-100u / fp-100uv mass[typ.] 0.6g p-lqfp100-14x14-0.50 e 0.8 0.5 0.825 0.575 z e z d b p a 1 h e h d y 0.10 e 0.65 c 0 10 l 0.4 0.6 0.8 0 0.1 0.2 a 3.05 16.5 16.8 17.1 22.5 22.8 23.1 a 2 2.8 e 13.8 14.0 14.2 d 19.8 20.0 20.2 reference symbol dimension in millimeters min nom max 0.25 0.3 0.4 0.13 0.15 0.2 p-qfp100-14x20-0.65 1.6g mass[typ.] 100p6s-a prqp0100jb-a renesas code jeita package code previous code y index mark 100 81 80 51 50 31 30 1 f * 2 * 1 * 3 z e z d e b p a h d d e h e c detail f a 1 a 2 l include trim offset. dimension " * 3" does not note) do not include mold flash. dimensions " * 1" and " * 2" 1. 2.
rev.1.00 sep 06, 2006 page 70 of 88 rej03b0181-0100 3826 group (one time prom version) fig. 3.3.1 initialization of processor status register ? how to reference the processor status register to reference the contents of the processor status register (ps), execute the php instruction once then read the contents of (s+1). if necessary, execute the plp instruction to return the ps to its original status. 3.3 notes on use 3.3.1 notes on programming (1) processor status register ? initializing of processor status register flags which affect program execution must be initialized after a reset. in particular, it is essential to initialize the t and d flags because they have an important effect on calculations. reason after a reset, the contents of the processor status register (ps) are undefined except for the i flag which is ?? fig. 3.3.3 stack memory contents after php instruction execution reset initializing of flags main program ( s ) ( s ) + 1 s t o r e d p s
rev.1.00 sep 06, 2006 page 71 of 88 rej03b0181-0100 3826 group (one time prom version) (2) decimal calculations execution of decimal calculations the adc and sbc are the only instructions which will yield proper decimal notation, set the decimal mode flag (d) to ??with the sed instruction. after executing the adc or sbc instruction, execute another instruction before executing the sec , clc , or cld instruction. notes on status flag in decimal mode when decimal mode is selected, the values of three of the flags in the status register (the n, v, and z flags) are invalid after a adc or sbc instruction is executed. the carry flag (c) is set to ??if a carry is generated as a result of the calculation, or is cleared to ??if a borrow is generated. to determine whether a calculation has generated a carry, the c flag must be initialized to ??before each calculation. to check for a borrow, the c flag must be initialized to ??before each calculation. (3) multiplication and division instructions ?the index x mode (t) and the decimal mode (d) flags do not affect the mul and div instruction. ?the execution of these instructions does not change the contents of the processor status register. (4) jmp instruction when using the jmp instruction in indirect addressing mode, do not specify the last address on a page as an indirect address. (5) brk instruction when the brk instruction is executed with the following conditions satisfied, the interrupt execution is started from the address of interrupt vector which has the highest priority. ?interrupt request bit and interrupt enable bit are set to ?? ?interrupt disable flag (i) is set to ??to disable interrupt. set d flag to ? adc or sbc instruction nop instruction sec , clc , or cld instruction fig. 3.3.4 status flag at decimal calculations
rev.1.00 sep 06, 2006 page 72 of 88 rej03b0181-0100 3826 group (one time prom version) (6) read-modify-write instruction do not execute a read-modify-write instruction to the read invalid address (memory and sfr). the read-modify-write instruction operates in the following sequence: read one-byte of data from memory, modify the data, write the data back to original memory. the following instructions are classified as the read-modify-write instructions in the 740 family. ?it management instructions: clb, seb ?hift and rotate instructions: asl, lsr, rol, ror, rrf ?dd and subtract instructions: dec, inc ?ogical operation instructions (1? complement): com add and subtract/logical operation instructions (adc, sbc, and, eor, and ora) when t flag = ?? operate in the way as the read-modify-write instruction. do not execute the read invalid memory and sfr. [reason] when the read-modify-write instruction is executed to read invalid memory and sfr, the instruction may cause the following consequence: the instruction reads unspecified data from the memory due to the read invalid condition. then the instruction modifies this unspecified data and writes the data to the memory. the result will be random data written to the memory or some unexpected event. (7) instruction execution time each instruction execution time is obtained from the cycle time of system clock multiplied by the number of instruction cycles listed in the machine instruction table. note that the cycle time of system clock is defined by the system clock division ratio selection bit and the system clock selection bit.
rev.1.00 sep 06, 2006 page 73 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.2 notes on i/o port (1) modifying output data with bit managing instruction when the port latch of an i/o port is modified with the bit managing instruction (note) , the value of the unspecified bit may be changed. reason i/o ports can be set to input or output mode in a bit unit. when reading or writing are performed to the port pi (i = 0?) register, the microcomputer operates as follows. ?ort in input mode -read-access: reads pin? level (the contents of port latch and pin? level are unrelated.) -write-access: writes data to port latch (the contents of port latch and pin? level are unrelated.) ?ort in output mode -read-access: reads port latch (the contents of port latch and pin? level are unrelated.) -write-access: writes data to port latch (the contents of port latch are output from the pin.) the bit managing instructions are read-modify-write form instructions (refer to ?.3.1 notes on programming (6)? for reading and writing data by a byte unit. therefore, when the bit managing instructions are executed to the port set to input mode, the instruction read the pin? states, modify the specification bit, and then write data to the port latch. at this time, if the contents of the original port latch are different from the pins? level, the contents of the port latch of bit which is not specified by instruction will change. in addition to this, if the bit managing instructions are executed to the port pi register in order to setting output data when port pi is configured as a mixed input and output port, the contents of the port latch of bit in the input mode which is not specified by instruction may change. note: bit managing instructions: seb instruction, clb instruction (2) the port direction registers are write-only registers. therefore, the following instructions cannot be used to this register: ?da instruction ?emory operation instruction when t flag is ? ?nstructions operating in addressing mode that modifies direction register ?it test instructions such as bbc and bbs ?it modification instructions such as clb and seb arithmetic instructions using read-modify-write form instructions such as ror the ldm, sta instructions etc. are used for setting of the direction register. (3) pull-up operation when using each port which built in pull-up resistor as an output port, the pull-up control bit of corresponding port becomes invalid, and pull-up resistor is not connected. reason pull-up control is effective only when each direction register is set to the input mode.
rev.1.00 sep 06, 2006 page 74 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.3 termination of unused pins (1) terminate unused pins perform the following wiring at the shortest possible distance (20 mm or less) from microcomputer pins. ? output ports open them. ? input ports connect each pin to v cc or v ss through each resistor of 1 k ? to 10 k ? . a for pins whose potential affects to operation modes such as the inti pin or others, select the v cc pin or the v ss pin according to their operation mode. ? i/o ports set the i/o ports for the input mode and connect each pin to v cc or v ss through each resistor of 1 k ? to 10 k ? . the port which can select a built-in pull-up resistor can also use the built- in pull-up resistor. when using the i/o ports as the output mode, open them at ??or ?? ?when opening them in the output mode, the input mode of the initial status remains until the mode of the ports is switched over to the output mode by the program after reset. thus, the potential at these pins is undefined and the power source current may increase in the input mode. with regard to an effects on the system, thoroughly perform system evaluation on the user side. ?since the direction register setup may be changed because of a program runaway or noise, set direction registers by program periodically to increase the reliability of program. (2) termination remarks input ports do not open them. reason ?the power source current may increase depending on the first-stage circuit. ?an effect due to noise may be easily produced as compared with proper termination ? shown on the above. i/0 ports setting as input mode [1] do not open in the input mode. reason ?the power source current may increase depending on the first-stage circuit. ?an effect due to noise may be easily produced as compared with proper termination ? shown on the above. [2] i/o ports : do not connect to v cc or v ss directly. reason if the direction register setup changes for the output mode because of a program runaway or noise, a short circuit may occur. [3] i/o ports : do not connect multiple ports in a lump to v cc or v ss through a resistor. reason if the direction register setup changes for the output mode because of a program runaway or noise, a short circuit may occur between ports.
rev.1.00 sep 06, 2006 page 75 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.4 notes on interrupts (1) unused interrupts set the interrupt enable bit for unused interrupts to ??(disabled). (2) change of relevant register settings when setting the followings, the interrupt request bit may be set to ?? ?hen switching external interrupt active edge related register: ?nterrupt edge selection register (address 3a 16 ) ?imer x mode register (address 27 16 ) ?imer y mode register (address 28 16 ) ?hen switching interrupt sources of an interrupt vector address where two or more interrupt sources are allocated related register: ?nterrupt source selection bit of ad control register (bit 6 of address 34 16 ) when not requiring for the interrupt occurrence synchronous with these setting, take the following sequence. fig. 3.3.5 sequence of changing relevant register reason when setting the followings, the interrupt request bit of the corresponding interrupt may be set to ?? ?hen switching external interrupt active edge concerned register: int 0 interrupt edge selection bit (bit 0 of interrupt edge selection register (address 3a 16 )) int 1 interrupt edge selection bit (bit 1 of interrupt edge selection register (address 3a 16 )) int 2 interrupt edge selection bit (bit 2 of interrupt edge selection register (address 3a 16 )) cntr 0 active edge switch bit (bit 6 of timer x mode register (address 27 16 )) cntr 1 active edge switch bit (bit 6 of timer y mode register (address 28 16 )) ?hen switching interrupt sources of an interrupt vector address where two or more interrupt sources are allocated. concerned register: interrupt source selection bit (bit 6 of ad control register (address 34 16 )) set the corresponding interrupt enable bit to ? (disabled) . set the interrupt edge select bit, active edge switch bit, or the interrupt source select bit. nop (one or more instructions) set the corresponding interrupt request bit to ? (no interrupt request issued). set the corresponding interrupt enable bit to ? (enabled).
rev.1.00 sep 06, 2006 page 76 of 88 rej03b0181-0100 3826 group (one time prom version) set the interrupt request bit to ??(no interrupt issued) nop (one or more instructions) execute the bbc or bbs instruction fig. 3.3.6 sequence of check of interrupt request bit reason if the bbc or bbs instruction is executed immediately after an interrupt request bit of an interrupt request register is cleared to ?? the value of the interrupt request bit before being cleared to ??is read. (3) check of interrupt request bit when executing the bbc or bbs instruction to an interrupt request bit of an interrupt request register immediately after this bit is set to ?? take the following sequence.
rev.1.00 sep 06, 2006 page 77 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.5 notes on timer this clause describes notes for the various operation modes of timer x, timer y, timer 1, timer 2, and timer 3. (1) timer x for all modes when reading and writing to the timer x high-order and low-order registers, be sure to read/write both the timer x high- and low-order registers. when reading the timer x high-order and low-order registers, read the high-order register first. when writing to the timer x high-order and low-order registers, write the low-order register first. the timer x cannot perform the correct operation if the next operation is performed. ?rite operation to the high- or low-order register before reading the timer x low-order register ?ead operation from the high- or low-order register before writing to the timer x high-order register when the operation ?riting data only to the latch?is selected by the timer x write control bit (bit 0 of timer x mode register (address 27 16 )) is selected, a value is simultaneously set to the timer x and the timer x latch if the writing in the high-order register and the underflow of timer x are performed at the same timing. unexpected value may be set in the high-order timer on this occasion. pulse output mode when reading port p5 4 (bit 4 of port p5 register (address 0a 16 )) in the pulse output mode, the pin state is read instead of the contents of the port latch. real time port function after reset is released, the port p5 direction register is set as the input mode and ports p5 0 ?5 7 functions as regular ports. to use as the rtp function pin, set the corresponding bit of the port p5 direction register to the output mode. cntr 0 active edge selection the cntr 0 active edge selection bit (bit 6 of timer x mode register) also effects the active edge of the generation of the cntr 0 interrupt request. (2) timer y for all modes when reading and writing to the timer y high-order and low-order registers, be sure to read/write both the timer y high- and low-order registers. when reading the timer y high-order and low-order registers, read the high-order register first. when writing to the timer y high-order and low-order registers, write the low-order register first. the timer y cannot perform the correct operation if the next operation is performed. ?rite operation to the high- or low-order register before reading the timer y low-order register ?ead operation from the high- or low-order register before writing to the timer y high-order register cntr 1 active edge selection the cntr 1 active edge selection bit (bit 6 of timer y mode register (address 28 16 )) also effects the active edge of the generation of the cntr 1 interrupt request. however, both edges are valid for the request generation regardless of the bit state in the continuous hl pulse-width measurement mode.
rev.1.00 sep 06, 2006 page 78 of 88 rej03b0181-0100 3826 group (one time prom version) (3) timers 1? set the value of timer in the order of the timer 1 register, the timer 2 register, and the timer 3 register after the count source selection of timer 1 to 3. ?hen the count source of timers 1 to 3 is changed, the timer counting value may become arbitrary value because a thin pulse is generated in count input of timer. ?f timer 1 output is selected as the count source of timer 2 or timer 3, when timer 1 is written, the counting value of timer 2 or timer 3 may become undefined value because a thin pulse is generated in timer 1 output. (4) timer 2 if the value is written in latch only, a value is simultaneously set to the timer 2 and the timer 2 latch when the writing in the high-order register and the underflow of timer 2 are performed at the same timing. (5) all timers the count source for timers is effected by system clock which is selected by the system clock selection bit (bit 7 of cpu mode register (address 3b 16 )). set the timer which is not used as follows: ?top the count (when using a timer with stop control) ?et ??to the corresponding interrupt enable bit
rev.1.00 sep 06, 2006 page 79 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.6 notes on serial i/o1 (1) writing to baud rate generator (brg) write data to brg while the transmission and reception operations are stopped. (2) setting procedure when using serial i/o1 transmit interrupt when the serial i/o1 transmit interrupt is used, take the following sequence. ? set the serial i/o1 transmit interrupt enable bit (bit 3 of interrupt control register 1 (address 3e 16 )) to ??(disabled). ? set the transmit enable bit (bit 4 of serial i/o1 control register (address 1a 16 )) to ?? ? set the serial i/o1 transmit interrupt request bit (bit 3 of interrupt request register 1 (address 3c 16 )) to ??(no interrupt request issued) after 1 or more instruction has executed. ? set the serial i/o1 transmit interrupt enable bit to ??(enabled). when the transmission enable bit is set to ?? the transmit buffer empty flag (bit 0 of serial i/o1 status register (address 19 16 )) and the transmit shift register completion flag (bit 2 of serial i/o1 status register) are set to ?? therefore, the serial i/o1 transmit interrupt request bit is set to ??regardless of the state of the transmit interrupt source selection bit (bit 3 of serial i/o1 control register). (3) data transmission control with referring to transmit shift register completion flag after the transmit data is written to the transmit buffer register (address 18 16 ), the transmit shift register completion flag changes from ??to ??with a delay of 0.5 to 1.5 shift clocks. when data transmission is controlled with referring to the flag after writing the data to the transmit buffer register, note the delay. (4) setting serial i/o1 control register again set the serial i/o1 control register again after the transmission and the reception circuits are reset by setting both the transmit enable bit and the receive enable bit to ?? fig. 3.3.7 sequence of setting serial i/o1 control register again set both the transmit enable bit (te) and the receive enable bit (re) to ? set the bits 0 to 3 and bit 6 of the serial i/o1 control register set both the transmit enable bit (te) and the receive enable bit (re), or one of them to ? can be set with the ldm i nstruction at the same time
rev.1.00 sep 06, 2006 page 80 of 88 rej03b0181-0100 3826 group (one time prom version) (5) pin state after transmit completion the txd pin holds the state of the last bit of the transmission after transmission completion. when the internal clock is selected for the transmit clock in the clock synchronous serial i/o mode, the s clk1 pin holds ?? (6) serial i/o1 enable bit during transmit operation when the serial i/o1 enable bit (bit 7 of serial i/o1 control register) is set to ??(serial i/o1 disabled) when data transmission is in progress, the transmission progress internally. however, the external data transfer is terminated because the pins become regular i/o ports. in addition to this, when data is written to the transmission buffer register, data transmission is started internally. when the serial i/o1 enable bit is set to ?? the transmission is output to the txd pin in the middle of the transfer. (7) transmission control when external clock is selected when an external clock is used as the synchronous clock for data transmission, set the transmit enable bit to ??at ??of the s clk1 input level. also, write the transmit data to the transmit buffer register at ??of the s clk1 input level. (8) receive operation in clock synchronous serial i/o mode when receiving data in the clock synchronous serial i/o mode, set not only the receive enable bit but also the transmit enable bit to ?? then write dummy data to the transmission buffer register. when the internal clock is selected as the synchronous clock, the synchronous clock is output at this point and the receive operation is started. when the external clock is selected as the transfer clock, the serial i/o becomes ready for data receive at this point and, when the external clock is input to the clock input pin, the receive operation is started. the p4 5 /txd pin outputs the dummy data written in the transmission buffer register. (9) transmit and receive operation in clock synchronous serial i/o mode when stopping transmitting and receiving operations in the clock synchronous serial i/o mode, set the receive enable bit and the transmit enable bit to ??simultaneously. if only one of them is stopped the receive or transmit operation may loose synchronization, causing a bit slippage. 3.3.7 notes on serial i/o2 (1) switching synchronous clock when switching the synchronous clock by the serial i/o2 synchronous clock selection bit (bit 6 of serial i/o2 control register (address 1d 16 )), initialize the serial i/o2 counter (write data to serial i/ o2 register (address 1f 16 )). (2) notes when selecting external clock when an external clock is selected as the synchronous clock, the s out2 pin holds the output level of d 7 after transmission is completed. however, if the clock is input to the serial i/o continuously, the serial i/o2 register continue the shift operation and output data from the s out2 pin continuously. a write operation to the serial i/o2 register must be performed when the s clk21 pin is ?? when the internal clock is selected as the synchronous clock, the s out2 pin holds the high- impedance state after transmission.
rev.1.00 sep 06, 2006 page 81 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.8 notes on pwm output circuit ??level output before starting pwm output when at least one of two is set to ??when both the pwm 0 function enable bit and the pwm 1 function enable bit are ?? ??level is output from the corresponding pwm pin during the period shown below. then, pwm output is started from ??level. ?ount source selection bit = ?? where n is the value set in the prescaler sec. ?ount source selection bit = ?? where n is the value set in the prescaler sec. n + 1 2 ?f(x in ) n + 1 f(x in ) change of pwm output when the pwm prescaler and the pwm register are changed during pwm output, the pwm waveforms corresponding to updated data will be output from the next repetitive cycle. figure 3.3.8 shows the change of pwm output. fig. 3.3.8 change of pwm output pwm output changes pwm prescaler and pwm register from the next repetitive cycle, out p ut modified waveform
rev.1.00 sep 06, 2006 page 82 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.9 notes on a/d converter (1) analog input pin make the signal source impedance for analog input low, or equip an analog input pin with an external capacitor of 0.01 f to 1 f. further, be sure to verify the operation of application products on the user side. reason an analog input pin includes the capacitor for analog voltage comparison. accordingly, when signals from signal source with high impedance are input to an analog input pin, charge and discharge noise generates. this may cause the a/d conversion precision to be worse. (2) analog power source input pin avss the av ss pin is an analog power source input pin. regardless of using the a/d conversion function or not, connect it as following : ?av ss : connect to the v ss line reason if the av ss pin is opened, the microcomputer may have a failure because of noise or others. (3) reference voltage input pin v ref connect an approximately 1000 pf capacitor across the avss pin and the v ref pin. besides, connect the capacitor across the v ref pin and the avss pin at equal length as close as possible. (4) clock frequency during a/d conversion use the a/d converter in the following conditions: ?select x in -x out as system clock by the system clock selection bit (bit 7 of cpu mode register (address 3b 16 )). when selecting x cin -x cout as system clock , the a/d conversion function cannot be used. ?f(x in ) is 500 khz or more. ?do not execute the stp or wit instruction during a/d conversion. reason the comparator consists of a capacity coupling, and a charge of the capacity will be lost if the clock frequency is too low. this may cause the a/d conversion precision to be worse. (5) when the falling edge is input to the adt pin during a/d conversion at the time of a/d external trigger effective, the conversion processing is interrupted and the a/d conversion starts again. in addition, even if ??is set to the ad conversion completion bit by the program during a/d conversion, re-conversion is not performed but the original conversion is continued. (6) the a/d converter will not operate normally if one of the following operation is applied during the a/d conversion: ?riting to cpu mode register ?riting to ad control register ?xecuting the stp instruction and wit instruction
rev.1.00 sep 06, 2006 page 83 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.10 notes on d/a converter (1) pin states at reset the p5 6 /da 1 pin and the p5 7 /adt/da 2 pin go to high impedance state at reset. (2) connecting low-impedance device the dai output pin have no buffer, so connect an external buffer when driving a low-impedance load. (3) reference voltage input pin v ref ?hen the p5 6 /da 1 pin and the p5 7 /adt/da 2 pin are used as dai output pins, the vcc level is recommended for the applied voltage to the v ref pin. when the voltage below vcc level is applied, the d/a conversion accuracy may be worse. ?onnect an approximately 1000 pf capacitor across the avss pin and the v ref pin. besides, connect the capacitor across the v ref pin and the avss pin at equal length as close as possible.
rev.1.00 sep 06, 2006 page 84 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.11 notes on lcd drive control circuit (1) count source for lcdck the lcdck count source selection bit (bit 7 of lcd mode register (address 39 16 )) is set to ? after reset, selecting f(x cin )/32. the sub clock has stopped after reset. therefore, turn on lcd after starting the oscillation and stabilizing the oscillation. select the lcdck count source after the corresponding clock source becomes stable. (2) stp instruction when executing the stp instruction, execute the stp instruction after setting the lcd enable bit to ?? if the stp instruction is executed during lcd lighting, direct-current voltage will be applied to the lcd panel. (3) when not using lcd when not using an lcd, leave the lcd segment and common pins open. connect the v l1 pin to vss, and the v l2 a nd v l3 pins to vcc. (4) using voltage multiplier circuit when using the voltage multiplier, apply the limit voltage or less to the v l1 pin, then set the voltage multiplier control bit to ??(enabled). if above the limit voltage is applied to the v l1 pin, current may flow in the voltage multiplier circuit at the time of the voltage multiplier circuit operation start. for the limit value, refer to ?lectrical characteristics? when not using the voltage multiplier, set the lcd output enable bit to ?? then apply proper voltage to the lcd power input pins (v l1 ? l3 ). when the lcd output enable bit is set to ??(disabled), the vcc voltage is applied to the v l3 pin inside of this microcomputer. (5) lcd drive power supply power supply capacitor may be insufficient with the division resistance for lcd power supply, and the characteristic of the lcd panel. in this case, there is the method of connecting the bypass capacitor about 0.1?.33 f to v l1 ? l3 pins. the example of a strengthening measure of the lcd drive power supply is shown in figure 3.3.9. fig. 3.3.9 strengthening measure example of lcd drive power supply v l3 v l2 v l1 ?onnect by the shortest possible wiring. ?onnect the bypass capacitor to the v l1 ? l3 pins as short as possible. (referential value: 0.1?.33 f) 3826 group
rev.1.00 sep 06, 2006 page 85 of 88 rej03b0181-0100 3826 group (one time prom version) (6) data setting to lcd display ram when writing a data into the lcd display ram during lcd being turned on (lcd enable bit = ??, write the confirmed data. do not write temporarily on the lcd display ram because this might cause the lcd display flickering. figure 3.3.10 shows the write procedure for lcd display ram when lcd is on. fig. 3.3.10 write procedure for lcd display ram when lcd is on (1)right process example lcd on lcd on or off ?ets determinate data to lcd display ram sets lcd display ram data lram0 (address : 40 16 ) ?f 16 lcd display on or off ? ?ets turn off data to lcd display ram ?ets determinate data to lcd diplay ram (2) error process example lcd on lcd on or off lcd off off off on on contents of addres 0040 16 are ?f 16 lcd display on or off ? sets lcd display ram data lram0 (address : 40 16 ) ?f 16 sets lcd display ram data lram0 (address : 40 16 ) ?0 16 sets lcd display ram data lram0 (address : 40 16 ) ?0 16 contents of addres 0040 16 are ?f 16
rev.1.00 sep 06, 2006 page 86 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.12 notes on watchdog timer (1) the watchdog timer is operating during the wait mode. write data to the watchdog timer control register to prevent timer underflow. (2) the watchdog timer stops during the stop mode. however, the watchdog timer is running during the clock stabilization period and the watchdog timer control register must be written just before executing the stp instruction. (3) the count source of the watchdog timer is affected by the system clock selected by the system clock selection bit (bit 7 of cpu mode register (address 3b 16 )). 3.3.13 notes on reset circuit (1) reset input voltage control make sure that the reset input voltage is less than 0.2 vcc for vcc(min). (2) countermeasures for reset signal slow rising in case where the reset signal rise time is long, connect a ceramic capacitor or others across the reset pin and the vss pin. use a 1000 pf or more capacitor for high frequency use. when connecting the capacitor, note the following: ?ake the length of the wiring which is connected to a capacitor as short as possible. ?e sure to verify the operation of application products on the user side. reason if the several nanosecond or several ten nanosecond impulse noise enters the reset pin, it may cause a microcomputer failure. (3) port state immediately after reset table 3.3.1 shows the each pin state during reset pin is ?? table 3.3.1 each pin state during reset pin is ? pin name p0, p1 (seg 26 ?eg 39 ) p2, p4 1 ?4 7 , p5, p6 p3 (seg 18 ?eg 25 ) p7 0 p4 0 , p7 1 ?7 7 seg 0 ?eg 17 com 0 ?om 3 pin state input mode (with pull-up) input mode (high-impedance) pulled up to vcc level high-impedance input mode (high-impedance) vcc level output vcc level output
rev.1.00 sep 06, 2006 page 87 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.14 notes on clock generating circuit mode transition both the main clock (x in -x out ) and sub-clock (x cin -x cout ) need time for the oscillations to stabilize. the mode transition between middle-/high-speed and low-speed mode must be performed after the corresponding clock becomes stable. the sub-clock, needs extra time to stabilize particularly when executing operations after power-on and stop mode. the main and sub clocks require the following condition for mode transition. f(x in ) > 3 ? f(x cin )
rev.1.00 sep 06, 2006 page 88 of 88 rej03b0181-0100 3826 group (one time prom version) 3.3.15 notes on standby function (1) once the stp instruction is disabled by the stp instruction disable bit (bit 6 of watchdog timer control register (address 37 16 )), the microcomputer cannot be return to the stp instruction enable state. (2) when using the standby function, note the following. the power dissipation may increase depending on functions and pin states. take the following countermeasures for reduce the power dissipation. countermeasures for reduce power dissipation ?nput ports: fix to ??or ??externally ?utput ports: fix to level that avoid leak-current. (example: fix the pin to ??when the circuit which current flows and led turns on at ? output.) ?/d input pins: fix to ??or ??externally ?wmi function enable bits (bits 1 and 2 of pwm control register (address 2b 16 )): ? ?cd enable bit: ? ?omplete a/d conversion (confirm the ad conversion completion bit (bit 3 of ad control register (address 34 16 )) is ?? ? ref input switch bit (bit 4 of ad control register): ? ?/ai conversion register (addresses 32 16 , 33 16 ): ?0 16 (3) when using stop mode operation after restoration by occurrence of interrupt request ?ll the timer 123 mode register bits are automatically set to ??except for bit 4. ?hen an interrupt request occurs in the stop mode, the stop mode is released and the clock stopped by stp starts the oscillation. the oscillation stabilizing time of main clock is secured to restoration from the stop mode when both the main and sub clocks are oscillating and the main clock is set for the system clock when executing the stp instruction. note that the oscillation of sub clock may not be stable after main clock oscillation being stable. when lcd display execute the stp instruction after turning lcd to off by setting the lcd enable bit (bit 3 of lcd mode register (address 39 16 )) to ?? if the stp instruction is executed while the lcd is on, direct voltage will be applied to the lcd panel. watchdog timer the watchdog timer stops during the stop mode but operates during the oscillation stabilizing time. therefore, the watchdog timer control register must be written just before executing the stp instruction to prevent its underflow. (4) when using wait mode restoration by reset input when the sub clock is selected as the system clock and the main clock is stopped at the time wit instruction is executed, if the reset pin input level is set to ?? the sub clock oscillation stops and the main clock oscillation starts. oscillation is unstable at first and requires an oscillation stabilizing time. retain the reset pin input level at ??until the oscillation is stabilized. after the oscillation has stabilized, retain the reset pin at ??for 2 s or more in order to set the internal reset state. watchdog timer the watchdog timer operates during the wait mode. the watchdog timer control register must be written to prevent its underflow.
revision history rev. date description page summary 3826 group (one time prom version) datasheet a - 1 1.00 sep 06, 2006 first edition issued this datasheet describes only 3826 group one time prom version (60k version of rom). the change point from past 3826 group datasheet (mej02b0083-0102z) is de- scribed to the revision history as your information though it is a first edition. improvement term union of sentence expressions. terms are united. (union terms: a/d converter, d/a converter, serial interface, etc.) package type: 100p6s-a prqp0100jb-a, 100p6q-a plqp0100kb-a description: revised for one time prom and eprom vertions. features: power source voltage, power dissipation reviced and 10-bit a/d mode added. applications: cordless phone, wireless application, household appliances, added fig. 2 and fig.3 pin configurations: one time prom version name described. fig. 4 part numbering: description for ram size added. fig. 5 memory expansion plan: one time prom and eprom versions added. table 3 support products: one time prom and eprom versions added. fig. 10 sfr: 0014 16 : reserved area ad convertion low-order register (adl) 0035 16 : ad conversion register (ad) ad conversion high-order register (adh) fig. 11 structure of port p0 direction register, port p1 direction register added. fig. 12 structure of port p3 output control register added fig. 21 structure of key input control register added serial i/o2 operating: added a/d converter: ad adh, adl fig. 38 structure of a/d converter-related registers: added. fig. 39 read of ad conversion register: added. fig. 40 a/d converter block diagram: ad convertion register adl, adh fig. 45 equivalent connection circuit of d/a converter added. fig. 48 example of circuit at each bias revised. fig. 56 example of reset circuit revised. fig. 58 ad conversion low-order register (0014 16 ) added. clock generating circuit: underline part changed and ( ) added a feed-back resistor exists on-chip (an external feed-back resistor may be needed depending on conditions.). however, an external feed-back resistor is needed be- tween x cin and x cout since a resistor does not exist between them. fig. 59 oscillator circuit: rd and note added fig. 61 clock generating circuit block diagram: note 2 added fig. 62d state transitions of system clock: revised 1 2 6 7 13 14 25 35 38 39 43 46 52 53 54 55 56
revision history rev. date description page summary 3826 group (one time prom version) datasheet a - 2 58, 59 60 61 to 68 69 77 to 88 1.00 sep 06, 2006 note on use: countermeasures against noise added note on use: power source voltage: added data required for mask orders: eliminated ratings of one time prom version described. package outline: changed 3.3 notes on use: added
keep safety first in your circuit designs! 1. renesas technology corp. puts the maximum effort into making semiconductor products better and more reliable, but there is a lways the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placeme nt of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap. notes regarding these materials 1. these materials are intended as a reference to assist our customers in the selection of the renesas technology corp. product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to renesas t echnology corp. or a third party. 2. renesas technology corp. assumes no responsibility for any damage, or infringement of any third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials. 3. all information contained in these materials, including product data, diagrams, charts, programs and algorithms represents i nformation on products at the time of publication of these materials, and are subject to change by renesas technology corp. without notice due to product improvement s or other reasons. it is therefore recommended that customers contact renesas technology corp. or an authorized renesas technology corp. product distrib utor for the latest product information before purchasing a product listed herein. the information described here may contain technical inaccuracies or typographical errors. renesas technology corp. assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies o r errors. please also pay attention to information published by renesas technology corp. by various means, including the renesas techn ology corp. semiconductor home page (http://www.renesas.com). 4. when using any or all of the information contained in these materials, including product data, diagrams, charts, programs, a nd algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. renesas technology corp. assumes no responsibility for any damage, liability or other loss resulting from the information contained herein. 5. renesas technology corp. semiconductors are not designed or manufactured for use in a device or system that is used under ci rcumstances in which human life is potentially at stake. please contact renesas technology corp. or an authorized renesas technology corp. product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerosp ace, nuclear, or undersea repeater use. 6. the prior written approval of renesas technology corp. is necessary to reprint or reproduce in whole or in part these materi als. 7. if these products or technologies are subject to the japanese export control restrictions, they must be exported under a lic ense from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is prohibited. 8. please contact renesas technology corp. for further details on these materials or the products contained therein. sales strategic planning div. nippon bldg., 2-6-2, ohte-machi, chiyoda-ku, tokyo 100-0004, japan http://www.renesas.com refer to " http://www.renesas.com/en/network " for the latest and detailed information. renesas technology america, inc. 450 holger way, san jose, ca 95134-1368, u.s.a tel: <1> (408) 382-7500, fax: <1> (408) 382-7501 renesas technology europe limited dukes meadow, millboard road, bourne end, buckinghamshire, sl8 5fh, u.k. tel: <44> (1628) 585-100, fax: <44> (1628) 585-900 renesas technology (shanghai) co., ltd. unit 204, 205, aziacenter, no.1233 lujiazui ring rd, pudong district, shanghai, china 200120 tel: <86> (21) 5877-1818, fax: <86> (21) 6887-7898 renesas technology hong kong ltd. 7th floor, north tower, world finance centre, harbour city, 1 canton road, tsimshatsui, kowloon, hong kong tel: <852> 2265-6688, fax: <852> 2730-6071 renesas technology taiwan co., ltd. 10th floor, no.99, fushing north road, taipei, taiwan tel: <886> (2) 2715-2888, fax: <886> (2) 2713-2999 renesas technology singapore pte. ltd. 1 harbour front avenue, #06-10, keppel bay tower, singapore 098632 tel: <65> 6213-0200, fax: <65> 6278-8001 renesas technology korea co., ltd. kukje center bldg. 18th fl., 191, 2-ka, hangang-ro, yongsan-ku, seoul 140-702, korea tel: <82> (2) 796-3115, fax: <82> (2) 796-2145 renesas technology malaysia sdn. bhd unit 906, block b, menara amcorp, amcorp trade centre, no.18, jalan persiaran barat, 46050 petaling jaya, selangor darul ehsan, malaysia tel: <603> 7955-9390, fax: <603> 7955-9510 renesas sales offices ? 200 6. re nesas technology corp ., all rights reser v ed. printed in ja pan. colophon .6.0


▲Up To Search▲   

 
Price & Availability of M3826

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X